[OT] D hidden features topic for StackOverflow

bearophile bearophileHUGS at lycos.com
Thu Sep 25 13:07:45 PDT 2008


Nick Sabalausky:
> FWIW, I was thrilled to see that newer versions of JS actually allow 
> variables to be declared as actual specific types instead of just variant. 

Everyone is free to like or dislike JavaScript, but the point here is that all JS and all its features are designed to be a small dynamic language with prototype-based OOP. So bolting on it fake-static-typing plus Java-style classes makes it a mess. That's why I was not trilled.
If you like static typing and Java-style OOP, is much better to start with a Java/C#-like language instead, and keep using it. Think about adding to the current D2 language prototype-based OOP too and a lot of dynamic typing here and there, and you get an image of a reversed situation.

Bye,
bearophile



More information about the Digitalmars-d mailing list