Self-recursion and arrow functions

Brandon Benvie bbenvie at mozilla.com
Sun Mar 17 10:11:49 PDT 2013


This is probably the most humor I've ever seen on esdiscuss.

On Mar 17, 2013, at 6:33 AM, "Mark S. Miller" <erights at google.com> wrote:

> Just in case anyone does not realize that this thread is humorous, 
> 
>     const factorial = n => n>1 ? n*factorial(n-1) : 1;
> 
> Yes, you can't use this as an expression. So what? After this declaration you can use factorial as an expression. Anonymous lambda expressions are a wonderful things. But in actual development, I have never yet encountered a recursive function I didn't want to name.
> 
> Ok, and now back to our irregularly scheduled humor...
> 
> 
> 
> 
> On Sun, Mar 17, 2013 at 6:19 AM, Kevin Smith <khs4473 at gmail.com> wrote:
>> 
>>> 
>>> Sorry arrow functions but this isn't a better JS.
>> 
>> Bah.  Arrow functions are a huge usability win for JS.  Try them- you'll see!
>> 
>> { Kevin } 
>> 
>> 
>> 
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
> 
> 
> 
> -- 
>     Cheers,
>     --MarkM
> _______________________________________________
> 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/20130317/247bb977/attachment.html>


More information about the es-discuss mailing list