Random thought: Alternative stuct

Jonathan M Davis newsgroup.d at jmdavisprog.com
Thu Sep 6 03:31:31 UTC 2018


On Wednesday, September 5, 2018 1:34:40 PM MDT 12345swordy via Digitalmars-d 
wrote:
> On Tuesday, 4 September 2018 at 04:03:19 UTC, Mike Franklin wrote:
> > In my opinion, we shouldn't add a third option.  Rather, we
> > should deprecate classes, and make and expand the capabilities
> > of structs.
>
> If D deprecate classes, then I will stop using D entirely. I was
> initially drawn by D for a "better-C++" and that includes classes.

I don't think that you have anything to worry about on that count. That
would be far too large a breaking change to be acceptable, and while most of
us don't bother with classes much (since we usually only use them if we need
runtime polymorphism), you're not going to find many of us agreeing that
classes should be gotten rid of. And selling Walter and Andrei on such an
idea would be a really hard sell - even more so when you consider stuff like
C++ integration, which they consider to be very important.

- Jonathan M Davis





More information about the Digitalmars-d mailing list