2 ms·
Lambda isn't syntactic sugar, it's a language feature. In Java it's kind of a syntactic sugar (lambda is a shortcut for an anonymous class with 1 method) becau
by ajuc 5y ago
Lambda isn't syntactic sugar, it's a language feature.
In Java it's kind of a syntactic sugar (lambda is a shortcut for an anonymous class with 1 method) because of historic reasons, but I'd prefer if it wasn't the case TBH.
It was always a dirty hack.