User loginNavigation |
Nested functions - how many nesting levels are really needed?I'm implementing a language that supports nested functions with closure semantics, i.e. def func(x:int) returns (int):int { return def nested(y:int) returns int { x*y; } } Now, to simplify the closure implementation, I only allow one nesting level. Is this overly restrictive? What does other languages do? I haven't come across a real-life use-case for multiple nesting levels. Any opinions / counter examples would be greatly appreciated. Thanks. By strog at 2009-01-21 20:03 | LtU Forum | previous forum topic | next forum topic | other blogs | 7869 reads
|
Browse archives
Active forum topics |
Recent comments
32 weeks 6 days ago
32 weeks 6 days ago
32 weeks 6 days ago
1 year 3 weeks ago
1 year 7 weeks ago
1 year 8 weeks ago
1 year 8 weeks ago
1 year 11 weeks ago
1 year 16 weeks ago
1 year 16 weeks ago