Why no multiple-dispatch?
Idan Arye via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 24 17:52:22 PDT 2014
On Monday, 25 August 2014 at 00:36:40 UTC, Vladimir Panteleev
wrote:
> On Monday, 25 August 2014 at 00:20:26 UTC, Vladimir Panteleev
> wrote:
>>> dynamic!ReactSpecialization(me, other);
>
> Here's a very basic implementation:
>
> http://dpaste.dzfl.pl/5150ca9c13f4
>
> Idan Arye is also working on functional pattern matching for
> object references:
>
> https://github.com/D-Programming-Language/phobos/pull/1266
And here I was struggling to think of a way to efficiently check
a tuple against a typetuple, neglecting to recall the rarely used
continue-to-label...
Thanks! I'm gonna borrow that idea for `castSwitch`.
More information about the Digitalmars-d-learn
mailing list