does D already have too many language features ?
Atila Neves
atila.neves at gmail.com
Mon Apr 8 22:40:48 UTC 2019
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.
More information about the Digitalmars-d
mailing list