logoalt Hacker News

waldrewsyesterday at 6:45 PM0 repliesview on HN

Completely free flow typing is risky in terms of interpretability, but type narrowing - var a : supertype; if (a is subtype) { // a is known to be subtype }, or type case, saves boilerplate in any OOP language.