sirisian / ecmascript-types

ECMAScript Optional Static Typing Proposal http://sirisian.github.io/ecmascript-types/
453 stars 4 forks source link

Drop generics/templates #84

Open hinell opened 1 year ago

hinell commented 1 year ago

Generics and Templates (identifiers between < and >) was derived from now obsolete approach to replace classic OOP inheritance and allow developers to write less code. Later, later it turned out to be completely wrong: you not only wasn't saved from writing less, but also was forced to deal with excessive amount of hardly readable code.

I sugges we don't inherit this mistake of the past. Especially for primitive types like Int, Boolean, etc.