LiveScript
LiveScript copied to clipboard
New syntax for arguments proposal
Currently we have
func = (arg1, arg2, arg3)-->
....
or
func = (arg1) -> (arg2, arg3)-->
....
I think it is good to have
func = (arg1 | arg2, arg3)-->
....
I think it would also be good to have
func = (arg{1..3})-->
...
Like the range syntax in Haskell, to avoid having to write arg1, arg2, arg3
. It's a waste of characters methinks.
@hmaurer, if this is a serious proposal, would you create a new issue for it please? (Also, do you know about &0
, &1
, etc.?)
@rhendric Sorry, I was trolling 🙄
:dart: You got me!
(For the future, though, please don't; given the quality of ideas that get proposed around here sometimes, I kind of have to assume that they're all sincere.)
I don't understand what is the objective of this proposal. Is for currying some arguments ?