Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More function arguments options #327

Open
vinz243 opened this issue Aug 28, 2014 · 0 comments
Open

More function arguments options #327

vinz243 opened this issue Aug 28, 2014 · 0 comments

Comments

@vinz243
Copy link

vinz243 commented Aug 28, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant