News for hackers. Stuff that matters.
Re:Java 21: No more public static void main by KRAKRISMOTT on Monday June 05, 2023 @03:09AM (#36193365)
Coroutines aside, you just re-invented Dart.
Re:Java 21: No more public static void main by mhoad on Monday June 05, 2023 @03:28AM (#36193497)
Came here to say exactly this. The language you are describing already exists. HN seems hellbent on pretending it hasn’t changed in 10 years but Dart was very much designed from the POV of what if we took the good parts from both Java and JS and left the bad bits behind and compiled it to native machine code. It’s actually a really good outcome that’s incredibly underrated.
Re:Java 21: No more public static void main by melony on Monday June 05, 2023 @07:59AM (#36195070)
My main gripe with Dart is their package manager. Unlike NPM or Cargo, it is possible to get conflicting diamond dependencies. The lack of shared memory concurrency is also disappointing.
Re:Java 21: No more public static void main by Hroble on Monday June 05, 2023 @05:20AM (#36194118)
That is the joke. Though probably Kotlin, not Dart, as the features described are exactly what Kotlin has.