It would be really cool if for example, in addition to this:
func = (foo, bar="bar") ->
We could do for example:
func = (foo [,String bar="bar"], function callback) ->
And it would be translated into:
func = function(foo, bar, callback) {
if(typeof bar === "function") {
callback = bar;
bar = "bar"
}
}
And many more other options
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
It would be really cool if for example, in addition to this:
We could do for example:
And it would be translated into:
And many more other options
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.