3 ms·
What is hard to understand about it? _ is universally used as a placeholder, it also usable in pattern matching. Scala can be used to make some perl-y <!! opera
by kaba0 3y ago
What is hard to understand about it? _ is universally used as a placeholder, it also usable in pattern matching. Scala can be used to make some perl-y <!! operators, but it is not like that at all, and makes for very readable, understandable code.
- haspok 3y agoAlso targeted at Java 22: https://openjdk.org/jeps/456 https://openjdk.org/jeps/456 (Unnamed Variables & Patterns)