Re:We need less powerful languages
by colanderman on Monday November 16, 2015 @12:41PM
(#10575781)
Since when do you need first-class functions for dynamic programming?
How often have you had to define `fix`? It's not even possible in certain strongly typed functional languages.
I stand by my assertion. First-class function manipulation is not a thing 99% of programs need to do.
And, no, an ML-like module system wouldn't make up for the lack of first-class functions. Standard ML doesn't allow any module recursion whatsoever, and, while OCaml allows it, it's quite unwieldy to use in practice. It would be literally impossible to define a function like `fix`, which requires the ability to call its function argument (let's call it `f`), supplying an expression containing `fix` itself as argument.