Deterministic Proposal
Jussi Kalliokoski
jussi.kalliokoski at gmail.com
Wed Jun 21 10:01:40 UTC 2017
> deterministic function sum(a, b) { return a + b; }
>
Ironically, having the engine decide when to memoize would make the
"deterministic" functions non-deterministic:
deterministic function foo(a, b) { return { a, b }; }
foo(1, 2) === foo(1, 2) // may or may not be true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170621/0a017de2/attachment.html>
More information about the es-discuss
mailing list