News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by wcarss on Saturday May 15, 2021 @09:49PM (#27170536)
A group I worked with in a high school lego robotics competition managed, if I recall correctly, to achieve 'recursion' by defining 2 very similar functions and having them just call each other. It was a frustrating device at times but also a really fun experience!
Re:Modern Javascript: Everything you missed over the last 10... by cema on Saturday May 15, 2021 @10:41PM (#27170779)
Is called a trampoline, a standard trick more or less.
Re:Modern Javascript: Everything you missed over the last 10... by wcarss on Sunday May 16, 2021 @12:52PM (#27174983)
Cool! That makes sense -- it still felt incredibly clever and tricksy to us when we were about 16 and trying to map our 'beautiful algorithm' into NQC sometime past midnight, for a morning competition.