Rant after trying Rust a bit

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 26 16:29:21 PDT 2015


On 7/26/2015 3:44 PM, deadalnix wrote:
> or template code (which will blow up at instanciation time, or worse, do random
> shit).

Um, all Rust traits do is test for a method signature match, so it compiles. It 
is NOT a defense against a random method that just happens to match and does 
some other unrelated random shit.

For example, the '+' operator. Rust traits sez "gee, there's a + operator, it's 
good to go. Ship it!" Meanwhile, you thought the function was summing some data, 
when it actually is creating a giant string, or whatever idiot thing someone 
decided to use '+' for.

Rust still has not obviated the necessity for unit tests, nor is Rust remotely 
able to guarantee your code doesn't "do random shit" if it compiles.


More information about the Digitalmars-d mailing list