MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/adventofcode/comments/kaenbn/deleted_by_user/gfbrvtu/?context=3
r/adventofcode • u/[deleted] • Dec 10 '20
[removed]
33 comments sorted by
View all comments
Show parent comment
1
Wait, are you talking about tail optimization? What if the function is not tail recursive?
1 u/mstksg Dec 10 '20 haskell doesn't use a call stack -- all function calls are on the heap. So you can still blow the heap, but that's usually a lot bigger than a call stack.
haskell doesn't use a call stack -- all function calls are on the heap. So you can still blow the heap, but that's usually a lot bigger than a call stack.
View all comments
Show parent comment
1
u/MichalMarsalek Dec 10 '20
Wait, are you talking about tail optimization? What if the function is not tail recursive?