Proposal: Switch position of delay and callback in signature of `setTimeout()`

Adrian Sieber mail at adriansieber.com
Mon Apr 25 18:03:50 UTC 2016


@Boris Well, I wasn't aware the `setTimeout()` has such an absolutely
broken API. So I guess a clean reset would be better/easier.

How about making `setTimeout()` a part of ECMAscript. Maybe as
`Date.setTimeout()` like it was done with `Number.parseInt()` … and this
time with a saner API =D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160425/71dd2022/attachment-0001.html>


More information about the es-discuss mailing list