Rant after trying Rust a bit

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 2 23:52:41 PDT 2015


On 08/02/2015 09:02 PM, Max Samukha wrote:
> 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.

'+' is usually used to denote the operation of an abelian group.


More information about the Digitalmars-d mailing list