Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
armchairhacker
53 days ago
|
parent
|
context
|
favorite
| on:
The compiler is your best friend
TypeScript has disctinct nullable and non-null types if you enable `strictNullChecks` or `strict` in TSConfig (
https://www.typescriptlang.org/tsconfig/#strictNullChecks
).
ygra
52 days ago
[–]
In fact, part of the implementation (or at least ideas) were borrowed from TypeScript. Nullability in C# changes depending on the checks around the code (similar to how the type of expressions in ThpeScript can change depending on prior code).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: