4 ms·
The rust version includes reference counting, state verification (preventing access before initialisation) and locking. All "for free" by wrapping the original
by biorach 3y ago
The rust version includes reference counting, state verification (preventing access before initialisation) and locking. All "for free" by wrapping the original value.
In C you would have to write all that out. And still have a good chance of getting something wrong first try.
- masklinn 3y agoOr, and I assume that’s what the GP was looking for, you write none of that and just fly by the seat of your pants.
- timeon 3y agoWhich brings us back to the topic of the article.
- masklinn 3y agoIndeed.
- z3phyr 3y agoNot the OP, but I do not like reading one line expression bonanzas. I would rather read implementations of different subsystems and then calling them. I mean, I find this simpler procedure x_component .. end procedure y_component .. end procedure assembly x_component y_component .. end In python, rust, C++, java, lisp people seem to form very long procedures with lambdas and some ninja fu to save lines of code and it may look elegant to some people, but I can't read it.