News for hackers. Stuff that matters.
Re:SetBigTimeout by ashkankiani on Friday October 18, 2024 @10:13PM (#41885121)
You are a bad programmer if you think silently doing the wrong thing is not a bug. The right thing to do with unexpected input as the setTimeout library author is to raise an exception.
Re:SetBigTimeout by log_e on Friday October 18, 2024 @11:02PM (#41885327)
It's in the standard library. You're a bad programmer if you don't learn the ins and outs of the standard library, or make sweeping generalizations.
Re:SetBigTimeout by notpushkin on Saturday October 19, 2024 @12:31AM (#41885647)
Standard library is an API just like any other library. The only thing different about it is backward compatibility (which in JS is paramount and the is reason setTimeout can't be fixed directly). It is a bad design still.
Re:SetBigTimeout by balls187 on Saturday October 19, 2024 @12:25PM (#41888753)
The wrong thing, or the undefined thing?

Feel free to make a proposal to ECMA.