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
-
Nah.
I fiddled around a bit with Haskell but being forced to make absolutely everything recursive isn't quite my cup of tea. -
squirvel2067yDoesn't recursion typically have a higher memory footprint than a well written for loop though? (Or am I just dumb)
-
Wombat105827y@SHA-16384 @AlexDeLarge I absolutely agree. But for me in most cases map() and reduce() do the job.
-
Wombat105827y@AlexDeLarge you can improve recursion in JavaScript by adding an parameter. But you probably know that already.
-
Maps, filters, reducers, etc are more composable
Yes recursion is very nice. Though I don't seem to use it much. At all actually. Need to keep an eye out -
Wombat105827y@AlexDeLarge I agree. I thought you meant the stack size exceeded problem in JavaScript...
Related Rants
For loops are for noobs.
rant
functional programming