Re:Java 18 / JDK 18: General Availability
by freedomben on Tuesday March 22, 2022 @11:55AM
(#30767620)
It's legitimately fascinating to see the rise of pattern matching, to the point that even Java will have it [1]! Combined with lambdas, this is a different language than the Java 1.5 that I first learned. If you would have told me that this would be valid Java code:
I would never have believed you. And while it's not Elixir-level pattern matching, it's not toothless either. This is valid pattern matching code too:
[1]: https://openjdk.java.net/jeps/420
[ Parent
| on HN ]
Re:Java 18 / JDK 18: General Availability
by shepherdjerred on Tuesday March 22, 2022 @12:55PM
(#30768515)
Everything since Java 7 has been a pleasure. The language is so much more mature now. The only problem is enterprise companies giving it a bad name, but I guess that's the price you pay for its broad usage.
Re:Java 18 / JDK 18: General Availability
by freedomben on Tuesday March 22, 2022 @04:59PM
(#30771470)
Do you think Enterprises will ever give up the mountain of "design patterns" that (IMHO) make Java less desirable to work in? The Enterprise FizzBuzz is funny because of how true it is [1].
[1]: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...
record patterns may come as soon as JDK 19 https://openjdk.java.net/jeps/405
fingers crossed!
Java turning more and more into poor man's C# with each release