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

>Consider for example preventing event propagation in JS. This varies by browser so you might write: > > if (event.preventDefault)

FWIW, that sort of field existence check (and much more) can be done fully at compile time in many mainstream programming languages.




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

Search: