Hacker News new | past | comments | ask | show | jobs | submit login

That won't be a problem in SoundScript though, because any code which tries to access a property which might be missing is unsound, so it won't "compile" (or rather, it won't pass the type checker).



In order for this to work, the type needs to be statically known, which in turn means type casts would be required when asserting a downcast.

Javascript littered with casts is nothing I want to see. I don't know about you.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: