Y
Hacker News
new
|
ask
|
show
|
jobs
by
groby_b
1438 days ago
This only works for non-sentinels. I.e. if "-1" happens to be the value indicating NoScore, I don't think the TS compiler can catch that?
1 comments
nailer
1437 days ago
Nobody is discussing using a magic number for null, nor is that an accepted practice in TS.
link