Re:The use of `class` for things that should be simple free ...
by jimmaswell on Thursday May 28, 2020 @11:17PM
(#23345939)
OO is just the most intuitive way to compartmentalize state to many people, me included.
[ Parent
| on HN ]
Re:The use of `class` for things that should be simple free ...
by cessor on Friday May 29, 2020 @05:41AM
(#23348051)
I feel the same way.
Re:The use of `class` for things that should be simple free ...
by atoav on Friday May 29, 2020 @01:26PM
(#23352832)
It often is, unless you solve a problem where it isn't (and at some point you will).
Nowadays I try to be very pragmatic about these things, but before I had a certain realization I just wanted things to fit neatly in classes and saw some beauty in it.
That was until I started using rust where this wish initially lead to a lot of frustration. When I finally gave in and did it the Rust "compositional" way, everything worked incredibly smoothly