Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not just a simple cast, but I should have used the correct term which is "control flow analysis". It's not just redefining the variable, control flow analysis works in lots of different places besides just typeof checks, and is possible in many cases because TS is structurally typed, not nominally typed.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: