Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Zababa
4y ago
0 comments
Share
> without strict compile time type checking that typescript affords writing correct javascript programs is almost impossible.
It's tedious but it's far from impossible.
0 comments
default
newest
oldest
friedman23
4y ago
Without an automated system telling you where to add checks for possible undefined values I think it's actually impossible in practice.
Zababa
OP
4y ago
I think it is very possible. There's a simple technique for that: check everything, all the time. As I said, it's tedious but it's far from impossible. You can probably optimise it by checking less things in practice.
j
/
k
navigate · click thread line to collapse