Rant after trying Rust a bit

Jordan Miner via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 25 15:12:27 PDT 2015


On Saturday, 25 July 2015 at 19:23:43 UTC, Tobias Müller wrote:
> Walter Bright <newshound2 at 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


More information about the Digitalmars-d mailing list