A tiny puzzler: Is this valid Java? import java.util.function.Predicate; public class Test { Predicate<String> f = (var a) -> a.isEmpty(); }
0 reposts1 like
A tiny puzzler: Is this valid Java? import java.util.function.Predicate; public class Test { Predicate<String> f = (var a) -> a.isEmpty(); }
0 reposts1 like
"Align the syntax of a formal parameter declaration in an implicitly typed lambda expression with the syntax of a local variable declaration." (from the openjdk.org/jeps/323)