19 Oct
2009
19 Oct
'09
9:28 a.m.
Oleg Broytman 写道:
On Mon, Oct 19, 2009 at 09:33:06PM +0800, starwing wrote:
current lambda only support single line syntax. it's not very good.
This is where you've made an error. Single-line lambdas are good enough, and if you need more - just create a named function.
Oleg.
BUT, why we need a name? just to process something or make decide, sometimes code itself is enough. and, is there performance problems when you define a inner function in another function? (that's, that function will define every time you call the function or not?)