函数对象
Sign in to saveAlso known as functor, function, functionoid, callable object, callable
programming construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax
Article · 中文
函数对象(function object)是一个程序设计的对象允许被当作普通函数来调用。 函数对象与函数指针相比,有两个优点:第一是编译器可以内联执行函数对象的调用;第二是函数对象内部可以保持状态。 函数式程序设计语言还支持闭包,例如,first-class函数支持在其创建时用到的函数外定义的变量的值保持下来,成为一个函数闭包。
Abstract from DBpedia / Wikipedia · CC BY-SA
Connections
closure
Entity
anonymous function
Entity
International Standard Book Number
Entity
Q15777
Entity
PHP
Entity
Q2005
Entity
Python
Entity
Java
Entity
Q2407
Entity
function
Entity
computer programming
Entity
Wayback Machine
Entity
Q2370
Entity
compiler
Entity
Q42478
Entity
Q161053
Entity
Lisp
Entity
graphical user interface
Entity
Q154755
Entity
Q5289
Entity