IRON/DLR:无名的“LambdaExpression”节点

Before execution, the entire expression tree must be wrapped in a function so that it can be executed. In the DLR, functions are represented asLambdaExpression nodes. While in most languages a lambda is an anonymous function, the DLR has no concept of names; all functions are anonymous. TheLambdaExpression is unique in that it is the only node type that can be converted to a delegate, which is what .NET calls first-class functions, using itsCompile() method. A delegate is similar to a C function pointer—it is simply a handle to a piece of code that can be called.


没有名字的话,对于解释器和编译器没有什么影响,但是对于代码理解和调试则不行。

你可能感兴趣的:(.net,delegate,lambda,编译器,dlr)