Decorators for functions

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


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: <>

More information about the es-discuss mailing list