Re: Multi-assign
- Posted by jeremy (admin) Nov 16, 2011
- 2520 views
I still like -,
{ -, lastname } = parse_name("John Doe")
Sure, it is used in math but given the context it's pretty easy to determine it's not subtracting any numbers. Also consider my previous statement of making this newly chosen character (whatever it is) valid for function calls instead of just an extra comma:
some_func("John", -, "Doe") -- vs some_func("John", $, "Doe")
Besides, $ requires a shift, - doesn't, that's reason enough
Jeremy