User loginNavigation |
archivesLoop and recursionGeneric loops are problematic to reason about and understand when you read the code, and therefore prone to cause bugs. I think it would be beneficial to forbid generic loops, and only have iterators. Recursions can also be problematic since the stack usage can become unpredictable. The exception is of course tail recursions, since those can re-use that current stack frame. If the language would prohibit generic loops and recursions except for tail recursions, would it still be useful as a generic programming language or would those restrictions make some common designs impossible? |
Browse archivesActive forum topicsNew forum topics
|
Recent comments
1 day 8 hours ago
1 day 21 hours ago
2 days 23 hours ago
5 days 19 hours ago
5 days 20 hours ago
6 days 8 hours ago
6 days 8 hours ago
6 days 20 hours ago
1 week 10 hours ago
3 weeks 2 days ago