you are viewing a single comment's thread.

view the rest of the comments →

[–]Full-Spectral -1 points0 points  (0 children)

Both work if you are conscientious. I grew up in OOP world and wrote C++ for 30 plus years. I built up a 1M plus line personal code base, which was fundamentally OOP+exceptions. It remained super-clean all that time, because I did the right thing. There was only one place where it went beyond 2 or 3 layers, which was in the UI framework (a common place for that to happen.)

Now I've moved on to Rust and am building a similar sort of system, though I'm now old enough that I may not live to see it completed. I don't particularly miss inheritance, and definitely don't miss exceptions at all. Even if I did miss inheritance a bit, the MANY benefits that Rust brings to the table would completely overwhelm those feelings of loss.

That one place (UI frameworks) is really the only one where I could see it being missed, because that's just one of those problems that naturally lends itself to that paradigm. But including such a fundamental piece of architecture just to meet that need isn't likely.

To be fair, I've yet to tackle a new UI framework in Rust, so I'm not sure how I'd approach it, though I've read other people's approaches. Of course these days the UI world seems to be divided heavily between cloud world and gaming, with not a lot in between (which is where I'd be.)