[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ? assignments are not expressions ?
- From: Will Leshner <will@...>
- Date: Tue, 27 Mar 2001 11:45:55 -0700
Actually, I think C's use of == for equality is consistent with other tests
like it, namely !=, <=, and =>. So I kinda like == for an equality test.
> From: "Michael T. Richter" <email@example.com>
> Organization: Half-Baked Software
> Reply-To: firstname.lastname@example.org
> Date: Tue, 27 Mar 2001 14:32:18 -0500
> To: Multiple recipients of list <email@example.com>
> Subject: Re: ? assignments are not expressions ?
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>> Lua should have had a different operator for assignment anyway (IMO).
>> Decades of suffering C programmers have already proven that this was a
>> bad design choice. Personally, I've always preferred Pascal's assignment
> I agree with you here. I like the := for assignment and = for equality
> tests much better. You can't mistype = as := by just leaving your finger
> on the key for a fraction of a second too long for starters....
> - --
> Michael T. Richter
> "Be seeing you."
> -----BEGIN PGP SIGNATURE-----
> Version: PGP Personal Privacy 6.5.3
> -----END PGP SIGNATURE-----