3 ms·
But even with Tail-Call Optimisation the code would run forever. In which world is never-terminating hot running code «correct»?
by _nalply 9y ago
But even with Tail-Call Optimisation the code would run forever. In which world is never-terminating hot running code «correct»?
- bad_user 9y agoIn the case where you've got an incoming stream of real time events?
- scarlac 9y ago"Forever" is obviously just a reference to would happen with memory usage. Proper optimized code could run "forever" (or a long time) without increasing in memory usage, ie. memory would scale as O(1) as opposed to O(n).