3 ms·
I remember reading (on HN I think) that coding in Rust is like playing some kind of intricate puzzle game. Tricking the compiler into accepting your code. You f
by filleokus 4y ago
I remember reading (on HN I think) that coding in Rust is like playing some kind of intricate puzzle game. Tricking the compiler into accepting your code. You feel smart when it works and challenged when it complains. I personally like that aspect, at least for now.
On the other end of the spectrum I would say Go is, with its lack of "advanced" or functional language features and sans-syntactic-sugar straight forward approach. I always feel like I have oncoming RSI when I write Go, its just so verbose and un-dense and frankly boring. No room for (too much) cleverness.
At the same time I would guess real development teams using Go are more productive (in problem spaces where Go can be used instead of Rust of course). Especially if you factor in mentoring of junior colleges new to the language etc.
- the_duke 4y ago> coding in Rust is like playing some kind of intricate puzzle game. Tricking the compiler into accepting your code That is mostly only true for very early beginners. There are certain patterns you have to learn and understand, especially for developers not accustomed to thinking about lifetimes ( which applies to most developers that only have experience with GC languages). And sometimes you do have to battle the compiler, even with experience. But most of that goes away pretty quickly once the language clicks for you. After that Rust can still feel restrictive, but that's because there are very few languages that enforce as much correctness at compile time. That very well can mean that Rust just isn't a good fit for certain domains - which is perfectly fine!
- baby 4y agoCompletely agree with Golang, it is such a nice language as it remains pretty basic/simple and thus extremely readable and easy to use. Sure it's not expressive enough for some applications, but for a lot of applications it really shines. I'm mostly doing Rust nowadays, but if I want to use a beautiful and enjoyable garbage collected language there's Golang.