rust-unofficial / patterns

A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
7.84k stars 354 forks source link

Switch from RAII to OBRM Terms, expand and improve parts (#322) #323

Open 9SMTM6 opened 1 year ago

9SMTM6 commented 1 year ago

This attempts to solve #322.

Since what was to be done finally was still up for discussion I've now mostly followed by opinion, and have not accounted for that of others.

This obviously isnt entirely finished and still needs polishing, but should serve as a basis for discussion.

9SMTM6 commented 1 year ago

markdownlint doesnt seem to have an autofix for the line-lenght lint.

As long as we're still discussing the changes I won't put in the work to manually fix these lints, housekeeping that result manually during subsequent changes is frankly no use of my time I accept.

9SMTM6 commented 1 year ago

Also, I should note that I dont have a TERRIBLE lot of experience with RAII in C++, so these sections are more at risk of being slightly wrong or not as complete as one could wish.

simonsan commented 6 months ago

Any updates on this? 🚀