satyr/coco — Issue #103: [Proposal] Optional function arguments
Author: ceymard
Created: 2011-10-24 12:53:37+00:00
State: open

```coffeescript
function myfunc (arg, [options], callback)
...
```

->

```
function myfunc (arg, _options, _callback) {
if (typeof _callback === "undefined") {
_callback = _options;
_options = undefined;
}
}
```

Or something like that...

This would greatly simplify declaration of functions with optional arguments that some framework use lately (like NodeJS)