3 ms·
Why do it feel like everyone is copying rust
by doubloon 2y ago
Why do it feel like everyone is copying rust
- lnxg33k1 2y agoI feel like this is more of a pure oop suggestion, that rust, even as a non oop language, implemented quite well
- _lvbh 2y agoBecause Rust got it right. Zig is THE language I’m looking forward to growing which adopts a lot of the best parts of Rust while keeping things simple like Go.
- papichulo2023 2y agoIf only would have its amazing std :(
- throwaway2037 2y agoCan you provide some concrete examples of where the Rust standard lib is superior to the Zig standard lib? I'm talking about the library, not the language.
- toast0 2y agoI use Rust for work, and I mostly dislike it, but Result and ? are pretty nice (when the type system doesn't get in the way)
- dlivingston 2y agoWhat about Rust do you dislike?
- toast0 2y agoI posted a rant here... https://news.ycombinator.com/item?id=39121489 https://news.ycombinator.com/item?id=39121489 But I'll add that I'm happier in languages that are less structured with types and things. Perl, PHP, Erlang. Where I can just write my code and see if it works, and add checks later, if need be. Erlang's model of 'let it crash' is perfect for me, make the happy path with error checking, but only add error handling if you need to; with hotloading in production so there's little disruption. Faffing about with casting u64 to and from usize when everyone knows I'm only ever running on 64-bit is madness. C feels easier to write than Rust, but then that's because C doesn't care if you tell it to do something stupid, it'll just do it. Also, I don't generally use an IDE, because I'm happy with an editor in one shell and another to compile and run. I do use an IDE when making terrible Android apps and terrible Arduino kinds of things; they're useful, but I can't focus in an IDE the way I can in a terminal text editor, and I've got 25 years of experience in the text editor, so I'm not planning to change.
- pjmlp 2y agoMore like Standard ML, but your point stands.