Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jahewson
on March 11, 2015
|
parent
|
context
|
favorite
| on:
Strengthening JavaScript
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).
barrkel
on March 11, 2015
[–]
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: