Re:Perils of Constructors
by adrianmonk on Sunday July 28, 2019 @07:43PM
(#20550451)
OK, that's very reasonable. I think you make some good points that constructors can be problematic. Maybe they need to be reinvented or something.
Just ditching them entirely as Rust does seems like an honest attempt at moving things forward, though I don't really see it as the long term solution because neither approach is all that great when you consider all the weaknesses that have been pointed out with both.
Just ditching them entirely as Rust does seems like an honest attempt at moving things forward, though I don't really see it as the long term solution because neither approach is all that great when you consider all the weaknesses that have been pointed out with both.