Re: Multi-assign

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu