News for hackers. Stuff that matters.
Re:Algebraic Data Types for C99 by thewakalix on Thursday May 09, 2024 @12:31PM (#40309914)
> The intent is to introduce a more-advanced construction called pattern matching in a later release.
Re:Algebraic Data Types for C99 by brabel on Thursday May 09, 2024 @01:07PM (#40310337)
You read that in a blog post from 2019.

Java has had comprehensive pattern matching since Java 21, like one year ago (current Java version is 22).

I posted an answer to the same parent comment with the C example written in Java...

You can read more about it here: https://www.baeldung.com/java-lts-21-new-features