understatement = CW?
@Archivist understatement?
What if we move to functional programming and forget about mutable loops at all?
understatement = CW?
@Archivist How does Elixir do it?
understatement = CW?
@worldsendless recursion, recursion everywhere, except when you make an actor handle the job in which case you just relegate the recursion to someone else ![]()
understatement = CW?
@Archivist Sounds like it has the kind of clean TCO that Java (Clojure) lacks, which slows down writing recursion just a enough to make room for list comprehension
understatement = CW?
@worldsendless but sometimes I do the mad scientist thing where I write a C++ library to do what is too slow or what would be disgracefully verbose and slow to write in Elixir and link it. It however requires great care to do because the Elixir runtime does not like it when your C or C++ code goes unruly
understatement = CW?
@worldsendless well, for optimization purposes, there are only infinite loops except sometimes
Also, well I use languages without actual loops a lot (or where you are discouraged to use loops because only two flavours exist: infinite and while loops)
I prefer recursion or abstracted loops when the language have them
But hey when I do Elixir I don't have to question which loop to use