Hacker News new | ask | show | jobs
by doctor_stopsign 2883 days ago
I have to say, the Rust compiler's commitment to nice error messages makes it a pleasure to work with. It is also cool to hear about the GlobalAllocator trait stabilization. I'll have to check out what the embedded-Rust space has been doing in this area!
1 comments

Yes, it's nice to see improvemed error messages. I read many people loathed what the borrow checker threw at them.
I'd like to mention that along those lines specifically, a lot of people have talked about NLL in terms of "the borrow checker accepts more of my code", but it also produces way better errors. See the "Diagnostics" section of http://smallcultfollowing.com/babysteps/blog/2018/06/15/mir-... for an example that I ran into in real code. (It's niko's blog but I supplied him with this example)
I think pouring more time and money into the error messages will pay out in the long run.

Messages like that make coding low-level stuff fun again.