PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Functions

Functions

Functions are a language feature.

In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed. Subprograms may be defined within programs, or separately in libraries that can be used by many programs. Read more on Wikipedia...

Languages without Functions include CSS

Languages with Functions include JavaScript, Python, PHP, Ruby, R, Scala, Lua, Erlang, Kotlin, Julia, Ada, PowerShell, OCaml, Groovy, F#, Bash, Solidity, Crystal, Verilog, Reason, VHDL, Opa, F*, X10, ABAP, Koka, ATS, SystemVerilog, IGOR Pro, Ligo, Eclipse Command Language, Q#, Sophia

Example from JavaScript:

function helloWorld() {console.log("hi")}

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub