Consider javascript already support for default parameters, so maybe we can use the default parameter to specify the strong type.
Edwin Reynoso
eorroe at gmail.com
Mon May 18 18:23:58 UTC 2015
Don't you just mean:
```
function addWithType(a=0, b=0) {
return int64(a) + int64(b);
}
```
On Mon, May 18, 2015 at 2:16 PM, Benjamin Gruenaum <benjamingr at gmail.com>
wrote:
> What about non-default parameters?
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150518/653b2df3/attachment.html>
More information about the es-discuss
mailing list