DEV Community

Discussion on: 🤔Pop Quiz! Which of these is an infinite loop?

Collapse
 
dpremus profile image
Danijel Premus • Edited

I made same test with TypeScript and unfortunately this kind of code pass without warning. (:

After that I made same test with another language (Delphi) that Anders Hejlsberg (designer of TypeScript) designed 24 years ago and this old compiler report error. :)

I forgot to mention in my previous comment that your article is great.