Re:Stop writing milliseconds and hating JavaScript's setTime...
by gb on Saturday May 14, 2011 @08:16PM
(#2548937)
I'm not disagreeing with your general point, but this does seem a little overkill when you could achieve a similar effect with a few constants:
etc.
[ Parent
| on HN ]
Re:Stop writing milliseconds and hating JavaScript's setTime...
by jrockway on Saturday May 14, 2011 @09:02PM
(#2549019)
Where are you getting these constants in JavaScript? You can't even trust the built-in "undefined" to actually contain "undefined".
(My point is: a library may be more appropriate in the JavaScript case, because of the lack of constants.)