News for hackers. Stuff that matters.
Re:Comparing Parallel Rust and C++ by blub on Thursday November 07, 2019 @10:46AM (#21474185)
Then the only reasonable conclusion is that the Rust community has different tastes compared to the mainstream programming community. To put it euphemistically.

The Swift team probably also agonized over syntax decisions and they came up with something very different which has won over many people and attracted little criticism.

Re:Comparing Parallel Rust and C++ by pcwalton on Thursday November 07, 2019 @11:01AM (#21474335)
The only concrete thing I've seen brought up so far is that some people don't like the keyword "fn". Swift chose "func". Is there really a huge difference? (I prefer "fn", by the way.)

Swift also doesn't have pervasive use of lifetimes like Rust does. Lifetimes, by their nature, always add some level of "noise".

Re:Comparing Parallel Rust and C++ by blub on Thursday November 07, 2019 @11:50AM (#21474826)
When people do make an effort and outline pain points, those are waved away by Rust programmers or deflected by claiming that they like said syntax choice.

At the end of the day though, these tiny thing like fn, or the lifetime annotations and the many others add up to an unpleasant experience and less readable code.

Re:Comparing Parallel Rust and C++ by pcwalton on Thursday November 07, 2019 @12:41PM (#21475305)
If Rust were an unpleasant experience, it wouldn't have users. I'm sorry that you disagree with the syntax decisions. We can't please everybody.
Re:Comparing Parallel Rust and C++ by blub on Thursday November 07, 2019 @02:33PM (#21476498)
I'm not an extremist, the language clearly has certain advantages. At the same time I do believe it could have a lot more users if it were a more pleasant experience.

If it becomes a mainstream language (like Java, C++, etc), I'd be happy to concede I was wrong. It could be that memory safety will trump ergonomics and it wouldn't be the first time that somewhat painful to use tools become very popular - see Linux, git, etc.

Re:Comparing Parallel Rust and C++ by rat9988 on Thursday November 07, 2019 @12:18PM (#21475074)
Lifetime annotations are an other ugly unreadable quirk. I'm happy to know I'm not the only one.
Re:Comparing Parallel Rust and C++ by pcwalton on Thursday November 07, 2019 @12:38PM (#21475264)
Those aren't syntax though. Without lifetimes you don't have memory safety without GC. There are plenty of languages that don't have memory safety, and plenty of languages with GC, but they don't broadly share Rust's goals.
Re:Comparing Parallel Rust and C++ by rat9988 on Friday November 08, 2019 @07:08AM (#21481529)
The problem is not lifetime but its annotation.