Decorators for functions

Yongxu Ren renyongxu at gmail.com
Thu Oct 22 00:54:29 UTC 2015


Alex,

```
const fibonacci = memoize(function(n) {...});
```

this is actually a very good example that why we should let decorator do
the job.

Regardless the name ```memoize``` or memorize, whatever,

How can you tell if fibonacci is a function, a list, or just a number?

That is why we should allow decorator on function
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151021/d286be84/attachment.html>


More information about the es-discuss mailing list