Re: Multi-assign
- Posted by mattlewis (admin) Nov 16, 2011
- 2573 views
_tom said...
This is how I understand multiple-assign so far...
Yes.
_tom said...
Of these choices the $ symbol is the worst choice because:
...
Clearly, $ means "end marker" in Euphoria. Using $ for other purposes is OK, but using $ for "other purposes" within a sequence is very bad--an entrenched pattern is being broken.
Any marker, other than $, makes more sense.
Well, I still disagree. There are currently two uses of $: length shortcut in subscripting, and list terminator. I see adding it here as similar to its list termination duties, and like it in part because it's already used that way.
But it looks like I may be out-voted. Of the other options, I think a tilde '~' is the next best choice.
Matt