4 ms·
I've been thinking of writing a language with Rust's ergonomics but less of the memory safety stuff. I prefer using no dynamic allocations, in which case the on
by accelbred 9mo ago
I've been thinking of writing a language with Rust's ergonomics but less of the memory safety stuff. I prefer using no dynamic allocations, in which case the only memory safety feature I need is leaking references to locals into outer scopes. As for the thread safety stuff, most of my stuff is single-threaded.
- giancarlostoro 9mo agoI've been wishing for Rust to become more ergonomic, what ergonomics does Rust currently have that other languages lack?
- Null-Set 9mo agoI love how everything is an expression with a value. And match expressions are quite nice, especially with the option type. I really miss those when working in javascript.
- zeroxfe 9mo agoIf Go had rust-style ADTs and pattern matching, and some parallel of "?" to short-circuit error handling, I'd be thrilled.
- accelbred 9mo agoFor me its everything being an expression, macro_rules, dyn, automatic conversions (the few that it does have), traits, and the ? operator.
- masklinn 9mo agoAffine types / destructive moves, type-level safety signal (sync/send), container-type locks. I really miss these when doing concurrent stuff in other languages.
- maxbond 9mo agoTo add to the sibling comments, a world-class LSP enabling you to get a great experience in any editor/IDE out of the box. This is not at all exclusive to Rust of course, most strongly typed languages have one at this point, but I've been working in Python lately and this is what I miss the most. (I'm using an LSP in Python, but it isn't as good at the best of times, and it seems like no matter how many times I fix it's configuration it's broken again the next day.)
- adastra22 9mo ago…then just use Rust? I’m confused. Most of this stuff never comes up if you aren’t doing things where memory safety would be an issue.
- accelbred 9mo agoThe code I have in C is often code that does't fit in Rusts safety model. Dealing with ffi is annoying because slices have no defined layout. `dyn` is limited compared to what I can do with a manual vtable. I have seriously attempted porting my personal stuff to Rust, but theres enough papercuts that I go back to C. I want the parts of Rust I find to be helpful without those parts I don't.