Douglas Crockford suggested changing the array splay symbol from * to ..., which would read like this:
race: winner, runners... =>
I think it's lovely. Any objections?
gold, silver, bronze: runners...
Multiple splats on the same line will look a little funky, but it's a small price to pay. This (ellipsis splats for function defs and calls, not exploded assignment) is now on master. Closing the ticket.
Just to read well. The * operator was alright, because of the kleene star connotation, but can look an awful lot like multiplication when skimming over code. I like the ... because it implies uncertainty about the length of the arguments.
family(mother, father, children...)
budget(food, shelter, misc_expenses...)
Also, I didn't realize this, but apparently it's the way to do splats in C and Java:
It's supported on the current master. I agree that it's not ideal, but still the better of the two options. Your first example compiles into this:
Sorry for commenting on a closed issue, but I followed a link here and I can't help but feel like this reads like one side of a conversation. Am I missing something obvious?
Huh. Maybe the other person deleted their github account? Or maybe it's a bug.