Hacker News new | ask | show | jobs
by ThePadawan 1773 days ago
That would make a somewhat interesting testing strategy.

In a similar vein, React intentionally calls user-implemented functions which are meant to be pure twice in a row (even though that's technically unnecessary), just to ensure the programmer actually makes the function pure (so the application behaves reproducably in the future).

1 comments

Haha nice, if ever there was a design decision worthy of the title "glorious bastard", this is it.