Re:Stack safety for free?
by marcosdumay on Monday December 06, 2021 @01:46PM
(#29463881)
Yes. But what is your point?
[ Parent
| on HN ]
Re:Stack safety for free?
by auggierose on Monday December 06, 2021 @05:27PM
(#29466523)
I don't need recursion that can equally well be modelled as iteration. Just take it out of the language. If you allow recursion, support it properly.
Re:Stack safety for free?
by marcosdumay on Monday December 06, 2021 @06:06PM
(#29466934)
"X is optional" is completely different from "X is not suitable for the real world".
Everything in a modern language is optional, but people are not rushing to program in a assembly.
Re:Stack safety for free?
by auggierose on Monday December 06, 2021 @06:23PM
(#29467090)
Recursion that cannot support arbitrary recursion depths is not optional, but broken. Going from a high-level programming language to assembly is going down the level of abstraction. I don't recommend that, unless there is a really good reason to. Iteration and tail recursion is the same level of abstraction.
I am not arguing against recursion. I am saying, do it right. Otherwise it is useless.