Hacker News new | ask | show | jobs
by steveklabnik 1334 days ago
I'd disagree with calling it that, but regardless: you're not trasmuting all over the place. You are using unsafe more than application-layer Rust, but the whole idea and power of Rust is encapsulating unsafety effectively. Things are a bit more transparent in these sorts of codebases, but the same principles apply: build useful abstractions of the unsafety, and then use them.
1 comments

This is why I like it. Abstracting the unsafety, yes I might have to write unsafe to directly access raw hardware memory to get sensor data or something, having a good way to encapsulate these sources of failures makes it easier to write better quality code.