Rant after trying Rust a bit
via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 6 04:26:07 PDT 2015
On Thursday, 6 August 2015 at 06:50:38 UTC, Walter Bright wrote:
> On 8/2/2015 8:17 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?=
> <ola.fosheim.grostad+dlang at gmail.com> wrote:
> > It's a weird thing to do for a C-decendant as I would expect
> "~=" to do binary
> > negation.
>
> If you really felt this way, you'd expect the C != operator
>
> a != b
>
> to be the same as:
>
> a = !b
I don't because "!=" is frequently used and usually in a context
where expectations points towards comparison and not assignment.
But I would prefer "=", "≠","<" and "≤" for comparison and
constants... then have something else for variable assignment.
More information about the Digitalmars-d
mailing list