Claus Reinke wrote:
languages that use imperative iterators, like Python and PHP.
And JS -- JS has mutation and objects. It's not going to swerve
toward Haskell (sorry, Claus).
I never understood your automated dislike of Haskell.
You misread me pretty badly here. Why?
Your dislike of Haskell as a reference/model for JS evolution is
explicit in your quoted message.
No. First, "dislike" sounds subjective and hostile, which I objected to
last time. Please hear me on that.
Second, or zero'th: Haskell is a static non-strict-evaluation functional
language! Your hope to push JS in that direction is misconceived on
first principles. JS is strict-evaluation, full of mutation, dynamically
typed. To make a case for more Haskell and less other language influence
in JS's evolution, you need a principled argument that overcomes these
foundational differences.
People can use JS in an FP style, refraining from mutation, using
pretend-monads. That's all allowed. But it is not and will not be how
the core language and library evolve, especially not at the price of
extra allocations (one per iteration-step).
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss