Nested Function - Languages

Languages

Well known languages supporting lexically nested functions include:

  • ALGOL-based languages such as ALGOL 68, Simula, Pascal, Modula-2, Modula-3, Oberon, Seed7 and Ada.
  • Modern versions of Lisp (with lexical scope) such as Scheme, and Common Lisp.
  • ECMAScript (JavaScript, and ActionScript).
  • Full support in Scala
  • Various degrees of support in scripting languages such as Ruby, Python, and Perl (starting with version 6).
  • There is also a C-related language with nested functions, the D language.
  • GCC also supports nested functions in C, as a language extension.
  • Fortran, starting with Fortran-90, supports one level of nested (CONTAINed) subroutines and functions.

Read more about this topic:  Nested Function

Famous quotes containing the word languages:

    I am always sorry when any language is lost, because languages are the pedigree of nations.
    Samuel Johnson (1709–1784)

    People in places many of us never heard of, whose names we can’t pronounce or even spell, are speaking up for themselves. They speak in languages we once classified as “exotic” but whose mastery is now essential for our diplomats and businessmen. But what they say is very much the same the world over. They want a decent standard of living. They want human dignity and a voice in their own futures. They want their children to grow up strong and healthy and free.
    Hubert H. Humphrey (1911–1978)

    Wealth is so much the greatest good that Fortune has to bestow that in the Latin and English languages it has usurped her name.
    William Lamb Melbourne, 2nd Viscount (1779–1848)