3 ms·
Don't pure functions come with the disclaimer that no one does anything stupid like overriding the Date constructor or valueOf? Otherwise, we have to either co
by badthingfactory 10y ago
Don't pure functions come with the disclaimer that no one does anything stupid like overriding the Date constructor or valueOf?
Otherwise, we have to either come up with a different name for pure functions with a modified meaning, or write a bunch of absolutely ridiculous defensive code in every single function we want to truly be pure.