does D already have too many language features ?
Manu
turkeyman at gmail.com
Tue Apr 9 02:00:50 UTC 2019
On Mon, Apr 8, 2019 at 3:45 PM Atila Neves via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Monday, 8 April 2019 at 17:20:00 UTC, Manu wrote:
> > On Mon, Apr 8, 2019 at 4:25 AM Atila Neves via Digitalmars-d
> > <digitalmars-d at puremagic.com> wrote:
> >> [...]
> >
> > That would eject me from the boat.
> > That said, I think classes as a discreet feature might be
> > unnecessary.
> > classes could be removed if the language were able to express
> > class
> > semantics in a struct as a library. That's tricky as hell
> > without ANY
> > compiler support though. I can't imagine a way to add concepts
> > like
> > `virtual` and `override` as library. It would probably require
> > AST
> > macros.
>
>
> I wonder if virtual and override could be done with UDAs.
Probably not without AST macros ;)
More information about the Digitalmars-d
mailing list