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.
[ Parent
| on HN ]
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.