Hacker News new | ask | show | jobs
by eru 5832 days ago
> Loops are the source of all evil[.]

That's why I prefer languages without loops.

1 comments

That's interesting. I can't tell if you're joking or not (I'm pretty sure the ability to loop is a requirement for Turing-completeness).

Do you mean like Lisp which favors recursive function (or lambda calculus which uses the Y-combinator :)?

That's what I assumed when I upvoted him. Recursion & lambda ftw.
Indeed, I was aiming at recursion. (Though I mostly use combinators like foldr instead of naked recursion.)

On the other hand: You can see loops as a special case of recursion. Though I like languages that don't treat this special case as a special case.