[666] in Coldmud discussion meeting

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

assignment operator

daemon@ATHENA.MIT.EDU (Tue Mar 7 15:53:56 1995 )

From: crag@serial.MIT.EDU (Robert de Forest )
To: coldstuff@MIT.EDU
Date: Tue, 7 Mar 1995 14:46:48 -0600 (CST)

I'd like to propose '->' be the assignment operator. It visually represents
 what happens to the variable being assigned the new value. It has no chance
 of being pronounced, 'equals'. It looks cool...

@program $root.init_root
 if (caller() != $root)
   throw(~perm, "Caller is not $root.");
 child_index -> 0;
 owners -> setadd([this()], sender());
 fertile -> 0;
.

And of course...

while (success -> .attempt()) {
  .display(success);
}

if (where -> .location_of(foo)) {
  .work_with(where, foo);
} else if (where -> .location_of(bar)) {
  .work_with(where, bar);
} else {
  .not_working();
}

Hm... Here are some other contestants:
':=', '=>', '<>', '<-', '='

What have I left out?

Crag