News for hackers. Stuff that matters.
Re:Run TypeScript code without worrying about configuration by jy14898 on Friday July 18, 2025 @05:51AM (#44602878)
example:

  type FireNuke = boolean;
  type DontFireNuke = boolean;
  function perhapsFireNuke(action: FireNuke);
you wouldn't want to call perhapsFireNuke with DontFireNuke, even though the types are compatible
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).