Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
recursions sucks, but it is fine, until you find a language that has tail call optimizations that tells you that your algo sucks, then it sucks more.
Thank you Scala -
/* it doesn't suck when it doesn't suck
* it really really sucks when it does. ๐
*/
function recursion(sucks: boolean) {
if (!sucks) return false;
return recursion(sucks);
} -
Honestly sometimes it's useful. As long as the language has tail call optimisation then it's fine. Mostly.
Recursion always sucks!
joke/meme