Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
snugbug
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
snugbug
9y ago
It is. I guess then you have to use the --strictNullChecks compiler flag to get the rest of the benefits
2.
▲
by
snugbug
9y ago
I hope TS adds native Swift-style optional values and chaining, where it fails at compile time if you try to access an optional without unwrapping it first. Conversely non-optional values cannot be null! There are projects that add option