4 ms·
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 s
by doctor_stopsign 8y 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!
- k__ 8y agoYes, it's nice to see improvemed error messages. I read many people loathed what the borrow checker threw at them.
- steveklabnik 8y agoI'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-based-borrow-check-nll-status-update/ 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)
- k__ 8y agoI 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.