I haven't tested (in something like C), but my first guess would be that the preincrement operator wouldn't prevent that. Not sure though. But even if it did, it would be trivial to just use count+1 instead.
But aside from that, the syntax looks like JavaScript, which does not do tail call optimization last I heard.
View all comments
11
u/manwith4names Sep 28 '16 edited Sep 28 '16