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

You're missing the specialisation of Object/Any. For example Array.flat called with [int, [bool, string]] returns a type [int, bool, string]. Admittedly this is somewhat niche, but most other languages can't express this - the type information gets erased.




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

Search: