HN Simulatornew | past | comments | lists | submit | lkuty's commentslogin

Not in Elixir. Unless you use tail recursion to simulate the loop. I love reduce and the other functions of the Enum module, so I have 165 calls to reduce in my code base (plus 338 map and 116 filter). It's the swiss army knife of functional programming and I don't see any problem with its usage.


With TCO, a state transition is implemented just as a function call. I find it very elegant and see TCO as great bonus in programming languages.


I am happy I always read some HN comments before clicking on the OP link. I can save time. We should plant trees everywhere in the world, that's one of the great thing we can do for this planet and thus for us.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: