Skip to content

More function arguments options #327

@vinz243

Description

@vinz243

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions