From: Gregory Brown Date: 2009-02-25T04:02:45+09:00 Subject: Re: Nexus Programming Language On Tue, Feb 24, 2009 at 1:44 PM, karlvonl wrote: > On Feb 24, 2:02 am, "M. Edward (Ed) Borasky" wrote: >> On Mon, Feb 23, 2009 at 10:04 PM, William James wrote: >> > Gary Wright wrote: >> >> >> On Feb 23, 2009, at 9:49 PM, Phlip wrote: >> >> >> > Gary Wright wrote: >> >> >> >> I always liked Eiffel's choice of := for assignment and >> >> >> a single = for comparison. >> >> > That dates back to Pascal. >> >> Actually it dates back to Algol. The people who designed it did it for >> a reason, but I can't remember what it was. I think it was to remind >> people that assignment was not equality, and the purists pronounce >> >> a := b >> >> as "a becomes b". > > If I ever design my own programming language, I'm going to use := for > assignment and == for equality, and let a single = be a syntax error, > just to avoid the whole confusion. Not a bad idea. -greg -- Technical Blaag at: http://blog.majesticseacreature.com Non-tech stuff at: http://metametta.blogspot.com "Ruby Best Practices" Book now in O'Reilly Roughcuts: http://rubybestpractices.com