I like to use what the language already have so if we can denote the type by 
constructor:

Function foo(a=Number(64),b=String()){
 return b+a;
}

Sent from my iPhone

> On May 18, 2015, at 2:23 PM, Edwin Reynoso <[email protected]> wrote:
> 
> 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 <[email protected]> 
>> wrote:
>> What about non-default parameters?
>> 
>> _______________________________________________
>> es-discuss mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/es-discuss
> 
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to