News for hackers. Stuff that matters.
Re:Robust APIs Are Weird by tasogare on Saturday June 20, 2020 @05:13AM (#23582784)
Two functions applied on input (Trim and ToLower in C#) solve all the examples you listed and any similar cases. Yes and no are obviously very different from true and false.
Re:Robust APIs Are Weird by adrianmsmith on Saturday June 20, 2020 @05:44AM (#23582901)
> Yes and no are obviously very different from true and false.

The text-based language YAML allows “yes” and “no” for Boolean in addition to “true” and “false”. So if multiple bright people think about this topic they’ll evidently come up with different approaches. Not so with a single bit.

Re:Robust APIs Are Weird by kd5bjo on Saturday June 20, 2020 @08:00AM (#23583453)
Non-native English speakers also exist. Around here, it’s not uncommon to see “S” for true and “Ó” for false.