Re: Equals Operator
- From: "Michael S" <a@xxx>
- Date: Fri, 17 Jun 2005 13:35:10 +0200
"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
.
- References:
- Equals Operator
- From: Roger
- Equals Operator
- Prev by Date: Events getting deleted
- Next by Date: Shift-JIS to UTF8 string conversion and c#
- Previous by thread: Re: Equals Operator
- Next by thread: User control and resizes
- Index(es):
Relevant Pages
|