3 ms·
The lambda syntax, to me. Why go Ruby |it| instead of Groovy it -> ? The first one is ugly. Maybe for easier parsing? Then ' for lifetimes. Personally I like s
by oblio 7y ago
The lambda syntax, to me. Why go Ruby |it| instead of Groovy it -> ? The first one is ugly. Maybe for easier parsing?
Then ' for lifetimes. Personally I like short keywords. Maybe "life"?
Then there are the <> generics which some don't like.
And most modern languages don't have references anymore plus & was always ugly and non intuitive as a symbol. Again, maybe a short keyword? "ref"?
- saghm 7y agoThese all seem like small personal preferences to me, which are entirely valid; I don't think it's possible for a language to have a syntax that pleases everyone. But the comment I was responding to described Rust as having an "awful readability problem", and I don't really see that being described here. In particular, the comment I was responding to described Java as having "stellar readability", so mentioning the generic syntax of Rust really surprises me. Is `Foo<? extends Bar>` really so much better than `Foo<T: Bar>`?