News for hackers. Stuff that matters.
Re:What killed Haskell, could kill Rust, too by vvillena on Tuesday September 08, 2020 @04:33AM (#24406387)
Rust has more syntax than other languages, but it's a cleverly designed language: every bit of syntax has one unique, clear meaning. Every bit of Rust syntax is intentional, and the official Rust documentation helps explain the reason behind it, with the reason usually being "the programmer is forced to make a choice that is usually implicit in other languages, and we want the code to explicitly show the choice the programmer made".
Re:What killed Haskell, could kill Rust, too by scoutt on Tuesday September 08, 2020 @05:39AM (#24406762)
I love the intention and the motivation behind the reasons they choose to define new syntax, but in what syntax regards, I tend to prefer less, not more. To me, things aren't clearer by adding more text or context.

"...perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away..." - Antoine de Saint Exupéry

Re:What killed Haskell, could kill Rust, too by pornel on Tuesday September 08, 2020 @06:46AM (#24407124)
You're overthinking it. Rust's syntax is not that complicated, even if it looks a bit scary before you read the book. For C programmers the real hard part is in semantics of references, which C programmers mistake for general-purpose pointers, and gloss over ownership.

Rust has an intentional well thought-out approach to what it makes explicit[1], which is useful in a language that is focused on control, correctness, and performance. It's not trying to make source code beautiful, it's trying to balance usability of the language with avoidance of surprises caused by implicit compiler magic.

[1]: https://boats.gitlab.io/blog/post/2017-12-27-things-explicit...