Withdrawing the Primitive Patterns preview feature in JDK 28
https://mail.openjdk.org/archives/list/amber-spec-experts@openjdk.org/thread/UYEK3PGOHN6R56AHJTSLPGAY363K666S/Primitive Types in Patterns will be removed in JDK 28 and will no longer be available in that release.
The Valhalla project has been exploring a new vision for Java numerics, including the possibility of user-defined numeric types. New kinds of numeric types would need to support exact numeric conversion, and vice versa. Given that the Valhalla work is still evolving, it would be premature to finalize Primitive Types in Patterns with their current definition of exact numeric conversion.
94
Upvotes
View all comments
Show parent comment
6
u/brian_goetz 19d ago edited 19d ago
There is not. There is a vague "exploration of a possible direction" (my video from JVMLS). But that hasn't stopped folks (looking at you, u/pjmlp) from assuming that whatever illustrative examples shown (despite contemporaneous disclaimers) were not only the actual design, but the *actual syntax* (and then jumping into bikeshed mode!)
Bear in mind that JVMLS is an extremely unusual conference; the audience of ~100 or so are almost exclusively VM and language designers and implementors. The talks are aimed to that audience, and only incidentally put up on YouTube for broader consumption. So it is virtually guaranteed that some folks will misunderstand what they are seeing, and then spread misinformation. (That sucks, but the next alternative is just not putting the talks up at all, and the alternatives get worse from there.)