Re:Run TypeScript code without worrying about configuration
by jy14898 on Friday July 18, 2025 @05:51AM
(#44602878)
example:
you wouldn't want to call perhapsFireNuke with DontFireNuke, even though the types are compatible
[ Parent
| on HN ]
Re:Run TypeScript code without worrying about configuration
by veidr on Friday July 18, 2025 @11:40AM
(#44605952)
unless... you know
Re:Run TypeScript code without worrying about configuration
by eyelidlessness on Friday July 18, 2025 @11:41AM
(#44605991)
To be fair, this is a better example of booleans being a poor fit for modeling many problems. And it’s solvable without even addressing either issue (eg how this is modeled in the real world with multiple affirmatives).