| ▲ | mihaic 4 days ago | |||||||||||||
I'm actually fine with almost all the decisions that Rust made in terms of logic and concepts, but specifically don't like the synthax itself: the symbols, keywords like the consonant-only "fn" instead of "func" for instance, the fact that || {} starts a lambda instead of || -> void {}, the fact that you can return things by simply having them in an if branch. It's the main reason I don't use the language. | ||||||||||||||
| ▲ | DrNefario 4 days ago | parent | next [-] | |||||||||||||
Most of those are a matter of preference, implicit return is just plain better, and it would be absolutely insane if closures required the return type to be specified. I do agree that the toilet bowl `|_|()` syntax is ugly, though. | ||||||||||||||
| ||||||||||||||
| ▲ | Mond_ 4 days ago | parent | prev [-] | |||||||||||||
Meh, if these are the main reasons you don't use the language, I don't know what to tell you. I get having preferences, but whether the keyword is `fn` or `func` is such a banal, trivial thing that doesn't matter at all. | ||||||||||||||
| ||||||||||||||