3 ms·
I know I've come across a case once where I wanted a recursive anonymous function in Erlang, but I don't remember the context. Couldn't do it in R16. One use c
by macintux 10y ago
I know I've come across a case once where I wanted a recursive anonymous function in Erlang, but I don't remember the context. Couldn't do it in R16.
One use case that comes to mind would be nested data structures where you'd like to iterate over each child's children.
- bubblesocks 10y agoI personally prefer to pull that type of functionality out into a private function. I think it makes the code easier to read.
- macintux 10y agoI didn't say it was a terribly good idea. I agree, usually.