Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    Actually there is at least one programming language that treats 0 as true. The unix shell. Commented May 16, 2013 at 10:55
  • +1 for addressing the real issue: Most of Morwenn's question isn't about bool at all. Commented May 17, 2013 at 14:02
  • @dan04 It is. The whole post is about the rationale behind the choice of the cast from int to bool in many programming languages. The comparison and error gestion stuff are just examples of places where casting it another way than the one it's currently done would have make sense. Commented May 21, 2013 at 6:40