-4
$\begingroup$

I know most languages use 'bool' or 'boolean' but I do not really like that name seeing as it was named after a person and a highly doubt that person invented the idea of yes or no questions altogether.

So what are some other good names for a datatype in a language that can either be true or false?

$\endgroup$
4
  • 3
    $\begingroup$ Well, George Boole did come up with boolean logic, so in a way he did invent (computational) yes or no questions... $\endgroup$
    – blueberry
    Mar 13 at 22:47
  • $\begingroup$ Binary? Logical Atom? Affirmation Atom? $\endgroup$
    – Delfin
    Mar 13 at 22:49
  • 4
    $\begingroup$ Are you designing a language for your own enjoyment, or to meet the needs of a developer constituency? If the former, pick whatever makes you happy personally. If the latter, ask them. $\endgroup$ Mar 15 at 4:15
  • $\begingroup$ Often, users will want a domain-specific yes/no value, so not yes/no at all but like overwrite/insert or with serif/without serif... $\endgroup$
    – Erik Eidt
    Mar 16 at 7:35

3 Answers 3

1
$\begingroup$

Not mentioned yet is bit, as it is in SQL.

I don't see a problem with Boolean or bool, though. It's a widely-known, highly-specific, and vocally-succinct word for one of the most common data types.

I don't think any of the alternatives on display so far are more desirable.

$\endgroup$
0
$\begingroup$
  1. Binary value

  2. Two-state value

  3. Truth value

  4. Logical value

  5. Propositional value

  6. Logical value

  7. Yes/no value

  8. True/false value

$\endgroup$
1
  • 1
    $\begingroup$ Truth atom is the best $\endgroup$
    – Delfin
    Mar 13 at 22:49
0
$\begingroup$
  1. Binary value
  2. Truth atom
  3. Biaxiological atom
  4. Binary Axiological Atom
  5. Biaxiological Value
  6. Bilogical value
  7. Logical atom
$\endgroup$

Not the answer you're looking for? Browse other questions tagged .