|
|
|
|
|
by jstimpfle
1227 days ago
|
|
Go had declare-variables-anywhere from the start AFAIK (today, it's not usually considered a "feature" anymore). Delphi 10.3 came out November 2018. I don't know Pascal ecosystems very well but worked with Embarcadero Delphi (probably _the_ major Pascal-derived ecosystem), I believe it was version 10.1, on a job in 2018, and it wasn't possible to declare variables anywhere. I consider this to be a huge annoyance, and indeed also a correctness problem because there is a larger chance that variables are used before initialization. > grammar + semantics are hardly a sales pitch That's why many don't care all that much about generics. > Java is an OOP language, maybe that isn't modern for you "Modern" is not that interesting in itself. Familiarity and ergonomics towards what you're doing is more important. "Missing" features is often an advantage. Newer is not always better, certainly not in all dimensions or application domains. |
|
Glad that at least it managed to get inspired by CLU model of generics from 1975.
There you go, enumerations, parametric types, structural typing, generics, garbage collection, modules, fast compilation to native code, REPL, checked errors, all about 50 years ago.
Pity there wasn't a Google around to push them.