HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by lhmiles | Hacker News Reader
1 point
·
lhmiles
·
·
1 comment
View on HN
lhmiles
(original poster)
·
Basically we can use the error-returning pattern from Go in typescript for great good. And since typescript has more expressive type checking, we can accomplish it without polluting the namespace with err1, err2, err3... Best of both worlds.
Reply on news.ycombinator.com