Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Or, 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.


Which brings us back to the topic of the article.


Indeed.


Not 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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: