[572] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: Assignment Operator.

daemon@ATHENA.MIT.EDU (Wed Nov 9 16:08:08 1994 )

Date: Wed, 9 Nov 1994 16:00:22 -0500 (EST)
From: James C Deikun <jcdst10+@pitt.edu>
To: rayn@crossaccess.com
Cc: coldstuff@MIT.EDU
In-Reply-To: <9411090204.AA21467@q.crossaccess.com>



On Tue, 8 Nov 1994 rayn@crossaccess.com wrote:

> If (when) assignment in expression becomes an issue again, I'd give
> this whole problem more weight, as the only time I've ever seen x = 1
> cause trouble is when its in an if in C code, and its not readily
> apparent that its an error. Even then, its a matter of experience. One
> must make these mistakes, and later laugh about it. (Gee, the server
> crashed cus i set reallyimportantparameter = 0, instead of testing its
> value! -- Gee you shouldnt be setting parameters like that, its bad OO ;)

Yes.  The is the only reason I personally support := is that I support
assignment as an expression.  However, I'd much rather have .= or '= for
assignment--much MUCH easier on the pinkies.

What I'd like to see is:

  =  as an assignment statement, as it is now.
  .= as an assignment expression.
  == as a comparison expression.

--
James Deikun (James & splat@JHM and BlueMOOn)