|
|
|
|
|
by mafribe
3596 days ago
|
|
provide just let polymorphism
and ML-style type inference
I mostly agree with this, and this should be the default starting point for any new programming language. If B. Eich had built Javascript on this basis, the world would have been a better place.My main caveat would be that even a basic language needs a mechanism to glue related code together, objects, modules, structs with row-typing, existentials, not sure. But something. |
|
While not perfect, I think ML's solution is pretty reasonable: a separate module language, whose complexity doesn't infect the core language.