More keywords? Or fewer?

Janice Caron caron800 at googlemail.com
Fri May 2 23:43:06 PDT 2008


On 03/05/2008, Russell Lewis <webmaster at villagersonline.com> wrote:
>  So I asked myself: are there any other common programming models that D
> doesn't have?  And it struck me: most interpreted languages have duck typing
> and hold-any-value variables.  Is there space for that in D?

We already have hold-any-value variables!

std.variant.Variant

We also effectively have compile-time duck typing (but not runtime
duck typing), because that's just how templates work. Runtime...? Hmm.
That would require runtime reflection, I think.



More information about the Digitalmars-d mailing list