Does anyone else find the syntax choices for many of the new Java features to be really distasteful? As a sacrifice to the gods of backwards compatibility, Java syntax seems to going the way of C++.
They say that it's a strawman syntax, i.e. it's an intentionally terrible syntax that isn't meant to be used for real to get people to focus on the concept instead of bikeshedding syntax.
Yeah I totally agree. As much as I like lambdas in JDK8 the syntax feels super bolt on. What's wrong with just {}, -> is just silly.
Whats wrong with the () -> {} syntax? Its nice and simple, and scales down well, so a -> a.b()