Comment

Comment by topspin

How have you dealt with the current situation in Java where several new and important language features are still "preview" and are subject to being withdrawn? The possibility that these features might ultimately disappear is not theoretical: String Templates has been removed[1] from 23 as what would have been the "third preview," for example.

The (likely debatable) list of features in 23 that a.) remain preview/incubator and b.) appear relevant to a work on data oriented Java programming are:

    Primitive Types in Patterns, instanceof, and switch (Preview) – JEP 455
    Implicitly Declared Classes and Instance Main Methods (Third Preview) – JEP 477
    Flexible Constructor Bodies (Second Preview) – JEP 482
    Vector API (Eighth Incubator) - JEP 469
    Scoped Values (Third Preview) – JEP 481
[1] https://mail.openjdk.org/pipermail/amber-spec-experts/2024-A... "So, to be clear: there will be no string template feature, even with --enable-preview, in JDK 23." - Gavin Bierman
parent topspin 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton