News for hackers. Stuff that matters.
Re:Interview with Douglas Crockford by ptx on Tuesday July 19, 2022 @01:52PM (#32155434)
I believe Crockford said in a talk [1] that he was going to stop writing loops when tail-call elimination is supported everywhere.

Also, avoiding the for loop in JS might be a good idea because of how easy it is to shoot yourself in the foot with "for (x in stuff) ..." creating a global variable (when you accidentally leave out "var").

[1] Probably this one? https://www.youtube.com/watch?v=XFTOG895C7c

There are no comments on this comment yet.