Re: Equals Operator




"Roger" <roger@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OPqDhoccFHA.2936@xxxxxxxxxxxxxxxxxxxxxxx
> What did MS not take the chance to change
> the silly == operator when they designed C#,
> to something reasonable like = ?
> Why change the universal meaning of = ?
>
> Wouldn't it be better to have:
> Assignment := //or something else
> Equal = //but keep = to be =
>
> My view,
> Roger
>

I also think pascal style makes more sense.

As I'm used to Delphi I typically assign when I should compare, which makes
for some funny bugs when I have (the misfortune) to code in C/C++. My Bad.

But as C# protects you from doing stupid things with assignments, it's no
big deal.
And as I do 99% of my coding in C# nowadays, I seldom make these kind of
mistakas anymore.

- Michael S


.



Relevant Pages

  • reverse-engineering on solaris
    ... what is the chance of reverse-engineering a binary executable (symbol ... table stripped off) to C/C++ on solaris, ...
    (comp.unix.solaris)
  • Re: does bytecode and machine code are same ?
    ... Oliver Wong wrote: ... I thought javac was a C/C++ program. ... Not a chance -- it'd start up a lot faster if it were... ...
    (comp.lang.java.programmer)
  • Re: About Precompiled headers
    ... Miscrosoft product, you have a better chance of getting help in a C/C++ group, ... especially a Microsoft group if there is one. ...
    (comp.programming)