Functions in Modula-2
Modula-2 is an imperative, procedural, and modular language, and the procedure is its fundamental unit of abstraction. Wirth made a deliberate distinction that many later languages blurred: a proper …
Read more →Modula-2 is an imperative, procedural, and modular language, and the procedure is its fundamental unit of abstraction. Wirth made a deliberate distinction that many later languages blurred: a proper …
Read more →In Icon, the unit of reusable code is the procedure. There is no separate function keyword - a procedure is defined with procedure…end, and whether it behaves like a “function” …
In most languages a “function” is a named block of statements that you call with arguments. J has functions too, but it calls them verbs, and the way you build them reflects J’s …
Read more →In Java, the unit of reusable behavior is the method. Because Java is an object-oriented, class-based language, there are no free-standing functions the way there are in C or Python — every method …
Read more →Functions are the heart of JavaScript. As a multi-paradigm language with strong functional roots (it was originally meant to embed Scheme), JavaScript treats functions as first-class values - they can …
Read more →Functions are the heart of Julia. Where many languages treat functions as just a way to organize code, Julia builds its entire programming model around them through multiple dispatch—a function can …
Read more →Functions are the heart of Gleam. As a functional language, Gleam treats functions as first-class values: you can store them in variables, pass them as arguments, and return them from other functions. …
Read more →Functions are the fundamental building blocks of Go programs. They package reusable logic, accept inputs through parameters, and hand results back through return values. Beyond the entry point func …
Functions are the building blocks of reusable code. They let you name a piece of behavior, pass data into it, and get a result back—turning long scripts into small, composable pieces. In …
Read more →Functions are the primary unit of code organization in Hare. As an imperative, procedural systems language, Hare keeps functions deliberately simple — there is no method dispatch, no operator …
Read more →Showing 31–40 of 67 posts (page 4 of 7)