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)

    The trouble with foreign languages is, you have to think before your speak.
    Swedish proverb, trans. by Verne Moberg.

    The very natural tendency to use terms derived from traditional grammar like verb, noun, adjective, passive voice, in describing languages outside of Indo-European is fraught with grave possibilities of misunderstanding.
    Benjamin Lee Whorf (1897–1934)