News for hackers. Stuff that matters.
Re:Things you can’t do in Rust (and what to do instead) by atoav on Sunday May 16, 2021 @04:25AM (#27172133)
The thing for me was: I realized the type system is not something to fight with, but something that you can utilize to always have certain guarantuees about what is going on, which can make it extremely easy to reason about code especially after your program reaches a certain size.

But to profit from this you have to reach a level where you are beyond fighting with the ownership model and with data types.

For small/quick scripting stuff I still go to python, because some problems can just be solved faster with it. I don't think there is anything wrong with that. It really depends on the scale of programs and the needed reliability IMO.

Re:Things you can’t do in Rust (and what to do instead) by giantandroids on Sunday May 16, 2021 @12:48PM (#27174936)
Thanks, I don't know that I am fighting it, its more that I just can't figure it out. Maybe I need to try again. I read the rust book last time, but large parts of it went over my head.