News for hackers. Stuff that matters.
Re:When O3 is 2x slower than O2 by mihaic on Sunday November 02, 2025 @09:04AM (#45790446)
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.
Re:When O3 is 2x slower than O2 by DrNefario on Sunday November 02, 2025 @10:00AM (#45790798)
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.
Re:When O3 is 2x slower than O2 by mihaic on Sunday November 02, 2025 @11:50AM (#45791622)
Again, I think JS/Typescript has a better syntax, since the implicit syntax is better when unbranched, like x => expression, but it's harder to read the more branches there are, since it's hard to visually scan where results can be located.
Re:When O3 is 2x slower than O2 by magicalhippo on Sunday November 02, 2025 @04:44PM (#45793709)
> implicit return is just plain better

I really dislike them. Makes me wonder if you just got distracted and forgot to finish the function. Be explicit, don't make me have to spend time figuring it out.

Re:When O3 is 2x slower than O2 by Mond_ on Sunday November 02, 2025 @11:35AM (#45791497)
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.
Re:When O3 is 2x slower than O2 by mihaic on Sunday November 02, 2025 @11:42AM (#45791556)
Each taken individually is something I can ignore. But there are so many of them that it's no longer trivial to ignore.