Re: Multi-assign
- Posted by jeremy (admin) Nov 17, 2011
- 2514 views
I think we may be worrying about multiple uses of a character a bit too much. Just learn the rules of Euphoria and what special characters do. No need to make it overly complex but knowing that $ is "ignore" in a LHS is a pretty easy rule.
One thing people did not comment on is making this "new" ignore character valid in function calls for greater clarity:
procedure greet(sequence name="World", sequence greeting="Hello") printf(1, "%s, %s!\n", { greeting, name }) end procedure greet(,"Goodbye") -- pretty bad IMHO greet( $, "Goodbye") -- much nicer
Discussing this may have an effect on what character we choose.
Jeremy