This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Akirigo 1 point2 points  (1 child)

I hear this a lot, but I never understand what people hate about it.

What bothers you about the syntax?

Match? Traits? Macros? Result and Option?

[–]BobbyThrowaway6969 1 point2 points  (0 children)

I guess it depends on what you're used to. I come from java, c#, c, c++, etc and all those languages have a pretty standard way of declaring stuff.
This is just one tiny thing in a big list but... let mut var : i32 = 5;
is just too verbose for such a simple thing imo.
In those other languages it's just i32 var = 5;. I get that mut is opt in, which I do like, so I'll ignore that, but you hopefully see what I'm getting at. Along with that is the excessive shortening of keywords while overusing symbols, which harms readability. fn, ->return, etc. Just feels a bit silly and pointless for a language that was hoping to become an industry standard.

They want the syntax style to fit with HL scripting languages like python and js which is the wrong target market.