On Saturday, 25 July 2015 at 19:23:43 UTC, Tobias Müller wrote:
Walter Bright <newshou...@digitalmars.com> wrote:
They write it something like:

    void foo(hasPrefix t) {
       t.prefix();
       s = cast(hasSuffix)t;
       if (s) bar(s);
       else RuntimeError(message);
    }

That's horrible!

Tobi

I agree. Seriously, that's horrible. I can't remember ever seeing code written like that. Why even use a statically-typed language if you are just going to bypass the type system?

Jordan

Reply via email to