Re:TypeScripting the Technical Interview
by eyelidlessness on Thursday March 23, 2023 @10:07PM
(#35284162)
To me `unknown` signals an intent to know, as in “I don’t know yet” (or put another way, “I don’t have any prerequisites for accepting this value, I can and will narrow it as appropriate”). In a codebase that otherwise takes type safety seriously, `any` in a type parameter (again to me) means “I don’t have any type narrowing agenda for this thing, it’s along for the ride and coming out the other side the same way it showed up”.
[ Parent
| on HN ]
There are no comments on this comment yet.