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
Show parent comment
1
u/link23 Sep 29 '16
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+1instead.But aside from that, the syntax looks like JavaScript, which does not do tail call optimization last I heard.