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 | 7829 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 19 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago