Rant after trying Rust a bit
Max Samukha via Digitalmars-d
digitalmars-d at puremagic.com
Sun Aug 2 12:02:18 PDT 2015
On Sunday, 26 July 2015 at 23:29:18 UTC, Walter Bright wrote:
> 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.
Number addition and string concatenation are monoid operations.
In this light, '+' for both makes perfect sense.
More information about the Digitalmars-d
mailing list