[441] in Coldmud discussion meeting
assignments change (fix)
daemon@ATHENA.MIT.EDU (Fri Sep 23 12:35:48 1994
)
From: BRANDON@cc.usu.edu
Date: Fri, 23 Sep 1994 10:31:25 -0600 (MDT)
To: coldstuff@MIT.EDU
X-Vms-To: COLDSTUFF
I toss my vote toward's the ':=' as an assignment operator. It would be the
best fix...
Cons for having assignments as expressions AND having '=' as an assignment
operator:
* It gets confused with '==', quite often.
(I can't think of any others)
Pros for having assignments as expressions with '=' as an assignment operator:
* It makes certain aspects of code smaller and more compact.
Cons for having assignments as expressions with ':=' as an assignment operator:
none
Pros for the same:
* It makes certain aspects of code smaller and more compact.
--------------
OK, sample code:
while (var := .test()) {
(expr);
}
while (var == .test()) {
(expr);
}
I quite like it actually...
BTW, I also think we should use 'handler' alone in a catch sequence. As riche
stated, two words for one operation is bad. 'with' on its own is vague,
'handler' isn't. Sample code:
catch ~twink {
foo;
} handler {
foo;
}
/\ Brandon Gillespie <a href="http://www.usu.edu/~brandon/">me</a> /\
() An Interactive RFC Index: http://www.usu.edu/~brandon/RFC/ ()
\/ "Luke, at that speed do you think you'll be able to pull out in time?" \/