Re:Mixing Swift and C++
by bsaul on Monday July 24, 2023 @03:21AM
(#36844135)
protocol extension adds another axis of design, with all its new gotcha ( pat , overrides, etc)
It looks great on paper and do enable beautiful designs in some cases. But after tasting languages like go you realize you can get away with struct & functions in 99% of the cases, and that having less design options is actually a plus. It lets you focus on what really matters : domain modeling.
Re:Mixing Swift and C++
by jb1991 on Monday July 24, 2023 @07:12AM
(#36845971)
It's a lot more than "looks great on paper." My suspicion is that you have not really used and benefited from these features in a non-trivial way or you'd understand why they are there.
It looks great on paper and do enable beautiful designs in some cases. But after tasting languages like go you realize you can get away with struct & functions in 99% of the cases, and that having less design options is actually a plus. It lets you focus on what really matters : domain modeling.