In computing, an anonymous function is a function defined, and possibly called, without being bound to an identifier. Anonymous functions originate in the work of Alonzo Church in his invention of the lambda calculus in 1936 (prior to electronic computers), in which all functions are anonymous. The Y combinator can be utilised in these circumstances to provide anonymous recursion, which Church used to show that some mathematical questions are unsolvable by computation.

PropertyValue
dbpprop:abstract
  • In computing, an anonymous function is a function defined, and possibly called, without being bound to an identifier. Anonymous functions originate in the work of Alonzo Church in his invention of the lambda calculus in 1936 (prior to electronic computers), in which all functions are anonymous. The Y combinator can be utilised in these circumstances to provide anonymous recursion, which Church used to show that some mathematical questions are unsolvable by computation. Anonymous functions have been a feature of programming languages since Lisp in 1958. An increasing number of modern programming languages support anonymous functions, and some notable mainstream languages have recently added support for them, such as C++0x the proposed new standard for C++. Some object-oriented programming languages have anonymous classes, which are a similar concept, but do not support anonymous functions. Java is such a language.
  • Anonyme Subroutine beschreibt eine Funktion eines Computerprogramms, die nicht über ihren Namen, sondern ausschließlich über Verweise angesprochen werden kann. Das Konzept benannter Funktionen ist aus praktisch jeder verbreiteten Programmiersprache bekannt: Eine Funktion erhält bei ihrer Definition einen eindeutigen Namen, über den man sie anschließend aufruft. Beispiel in Perl: # Definition und Deklaration der Funktion named. sub named (foo, bar) // Tue dies. Tue das. # Aufruf der Funktion. named(Der Name der Funktion wird vom Laufzeitsystem dazu verwendet, mit Hilfe der Symboltabelle oder eines dynamischen Verfahrens die Funktionsdefinition zu identifizieren und dort hinterlegten Code auszuführen, in kompilierten Sprachen löst prinzipiell ähnlich bereits der Linker die Namen nichtvirtueller Funktionen auf. Mit dem Konzept der anonymen Subroutine wird es nun möglich, neben solchen benannten auch unbenannte Funktionen zu definieren. Beispiel in Perl: # Definition und Deklaration der Funktion. my $subref=sub # Aufruf der Funktion. $subref->(Da die Funktion keinen Namen mehr hat, ist ein symbolischer Aufruf nicht mehr möglich, die Routine wird vielmehr über eine Referenz, also einen Verweis auf die Definition, indirekt gestartet. Anonyme Subroutinen können die Programmierung kontextabhängiger Funktionsaufrufe sehr stark vereinfachen. Darüber hinaus ermöglichen sie die einfache Verwendung von Funktionsreferenzen als Funktionsparameter und die Speicherung in Datenstrukturen. Beispiele in Perl: # Führe einen Rückruf aus. doSomething(callback => sub, # Speichere Referenzen in einer Hashtabelle. my calls=(quick => sub, clean => sub, dirty => sub, Das verwandte Konzept der Funktionszeiger in C oder C++ bietet prinzipiell ähnliche Möglichkeiten, ist aber aufgrund seiner Syntax nicht trivial in der Anwendung, zudem bleibt die eigentliche Funktion stets gleich benannt - aber ein separat erstellter Verweis kann beliebige Namen tragen. Java verwendet für diesen Zweck so genannte anonyme Inline-Klassen, oft vom Typ Runnable. Anonyme Subroutinen werden von den meisten Skriptsprachen unterstützt, zum Beispiel Perl, Python, Lisp und - in neueren Versionen - JavaScript und JScript.
  • Una funció anònima és una funció o procediment que no està lligat a cap identificador. S'utilitza en llenguatges de programació que admeten funcions d'ordre superior on les funcions anònimes són expressions, del tipus de la funció, susceptibles de ser passades com a valor. En el càlcul lambda totes les funcions són anònimes.
  • Les fonctions anonymes sont des fonctions n'ayant pas de nom. Parce que ces fonctions n'ont pas de nom, à l'endroit où l'on voudrait mettre leur nom, on trouve directement les instructions définissant la fonction introduites par une syntaxe particulière. Dans les langages de programmation fonctionnelle, les fonctions anonymes sont souvent appelées fonctions lambda, en référence au lambda-calcul, outil théorique dans lequel on programme tout sous forme d'appel de fonction, alors même qu'aucune fonction de base n'est définie.
  • Анонимная (безымянная) функция — в программировании особый вид функций, которые объявляются в месте использования и не получают уникального идентификатора для доступа к ним. Обычно при создании они либо вызываются напрямую, либо ссылка на функцию присваивается переменной, с помощью которой затем можно косвенно вызывать данную функцию.
dbpprop:date
  • August 2009
dbpprop:discuss
  • Talk:First-class_function Merge_anonymous_function_here
dbpprop:hasPhotoCollection
dbpprop:reference
dbpprop:wikiPageUsesTemplate
rdfs:comment
  • In computing, an anonymous function is a function defined, and possibly called, without being bound to an identifier. Anonymous functions originate in the work of Alonzo Church in his invention of the lambda calculus in 1936 (prior to electronic computers), in which all functions are anonymous. The Y combinator can be utilised in these circumstances to provide anonymous recursion, which Church used to show that some mathematical questions are unsolvable by computation.
  • Anonyme Subroutine beschreibt eine Funktion eines Computerprogramms, die nicht über ihren Namen, sondern ausschließlich über Verweise angesprochen werden kann. Das Konzept benannter Funktionen ist aus praktisch jeder verbreiteten Programmiersprache bekannt: Eine Funktion erhält bei ihrer Definition einen eindeutigen Namen, über den man sie anschließend aufruft. Beispiel in Perl: # Definition und Deklaration der Funktion named. sub named (foo, bar) // Tue dies. Tue das.
  • Una funció anònima és una funció o procediment que no està lligat a cap identificador. S'utilitza en llenguatges de programació que admeten funcions d'ordre superior on les funcions anònimes són expressions, del tipus de la funció, susceptibles de ser passades com a valor. En el càlcul lambda totes les funcions són anònimes.
  • Les fonctions anonymes sont des fonctions n'ayant pas de nom. Parce que ces fonctions n'ont pas de nom, à l'endroit où l'on voudrait mettre leur nom, on trouve directement les instructions définissant la fonction introduites par une syntaxe particulière.
  • Анонимная (безымянная) функция — в программировании особый вид функций, которые объявляются в месте использования и не получают уникального идентификатора для доступа к ним.
rdfs:label
  • Anonymous function
  • Anonyme Subroutine
  • Funció anònima
  • Fonction anonyme
  • Анонимная функция
owl:sameAs
skos:subject
foaf:page
is dbpprop:redirect of