rustlang Show more
I'm an imperfect programmer. If there's a away to structure an API or use a compiler that saves my butt, I'm going to use it. That's why I really like Rust. Rust saves my butt (or it will if I ever use it in prod)
For instance, I'm trying to convince a coworker to use a higher-ordered function to protect access to a value that needs to be locked.
https://gist.github.com/ericmoritz/992ddd2d96901728e3f315114fc5926d
In this example, it is impossible to access the value outside of a lock.
A Fediverse instance for people interested in cooperative and collective projects.