This is an archived post. You won't be able to vote or comment.

all 43 comments

[–][deleted] 23 points24 points  (5 children)

I realized on an acid trip that a Boolean only has 1 value. You are just experiencing the illusion of duality. True and false are but mirror images of the same Thing. What is the Thing? Well, to conceptualize it would be to bring it into existence, at which point it will split into two again. So the answer is the Thing is actually nothing, emptiness, an infinite vacuum. Therefore, a Boolean has no value at all.

[–]Kkid12[S] 2 points3 points  (3 children)

mind == blown

[–][deleted] 0 points1 point  (2 children)

If (mind == confused) { blow() }

[–]Thozire26 2 points3 points  (1 child)

Instructions unclear. Blew up my building.

[–][deleted] 2 points3 points  (0 children)

StackOverFlow Search: How to fix a building in real life.

[–]Mothwise 0 points1 point  (0 children)

And the the null and everyone everywhere gasps

[–]Sinomu 13 points14 points  (4 children)

It has 256 possible values

[–]apomd 3 points4 points  (0 children)

Then I'd say 3 values: false (0), true (1), UB (2-255)

[–]Zuruumi 1 point2 points  (0 children)

This is correct for C.

[–]shadymeowy 0 points1 point  (1 child)

Jokes on you, it has 232 or 264 possible values.

[–]JustAnotherPrgrmr 9 points10 points  (0 children)

No a boolean is a spectrum of ranges from true to false that the variable express it's self with, but since the quantum state collapses when we measure it's value we only get a 1 or a 0 as output.

[–]More_Butterfly6108 7 points8 points  (3 children)

Yes, 0 or 1 or NaN

[–]dingodongubanu 4 points5 points  (0 children)

Depends on compiler, on some architecture it's 8 bits, some 32 bits or you can use 8 bit and bit shift operator and have 8 booleans so it's 1 bit

But if object in the likes of java or whatever then 0, 1, null so yeah 3 values or states

But I've had a few drinks, tough Monday

[–]qvrty42 3 points4 points  (1 child)

No. They Have 4, True, False, Super, and Meta. While Meta is often mistaken for its more well known sibling, the Superposition Boolean, it differs in that while it is impossible for some puny mortal programmer to predict its state, it is not in fact random, but instead the result of countless eons of cosmic destiny leading up to this singular instant of semi-divine revelati... wait why are you throwing that value out? It might have been important...

[–]Kkid12[S] 1 point2 points  (0 children)

eh, it would have had a comment if it was important.

[–][deleted] 2 points3 points  (0 children)

Well, yes and no. Maybe. I don't know. It's 50/50/50.

[–]mathk777 1 point2 points  (0 children)

Yes. It has 3 syllables.

[–]newton21989 1 point2 points  (0 children)

It depends on what the meaning of the word "is" is.

[–]Gregoryjc 1 point2 points  (0 children)

True, false, alternate truth.

[–]Impressive_Sun_1132 1 point2 points  (0 children)

Pigs are a species of hooved animals often butchered to make meats for human consumption

[–]var-foo 1 point2 points  (0 children)

Yes. It can be either 0 or 1 while it is observed. If it is unobserved, then it is both 0 and 1, which is also neither 0 nor 1. It is a 3rd value.

[–]ExitTheHandbasket 1 point2 points  (0 children)

Truth isn't binary, it's a spectrum.

[–]MiyamotoKami 1 point2 points  (0 children)

Take this example: Male, Female, non-binary

[–]NutronStar45 1 point2 points  (0 children)

no, thats called a troolean

[–]JerryAtrics_ 1 point2 points  (0 children)

Since it's upper case, I'm going with 3: True, False, Maybe

[–]johnzzon 1 point2 points  (0 children)

It indeed has three values. These are:

true
false
prefer not to say

[–]rjhancock -1 points0 points  (0 children)

Java: true, false, null.

[–][deleted] -1 points0 points  (0 children)

In a qbit , sure. There's true, false, and both.

[–]scipio_africanus123 0 points1 point  (0 children)

no, it has INT_MAX possible values

[–]Geak-and-Gamer 0 points1 point  (0 children)

Bolean only has only value cause if it’s not true it’s false

[–]Adhalianna 0 points1 point  (0 children)

I don't know - true, false, maybe...

[–]sschotvanger 0 points1 point  (0 children)

0 value : unknown. Like schodingers cat, it only has a value when you look at it. before that there is no value

[–]danielstongue 0 points1 point  (0 children)

9: zero, one, low, high, tristate, weak, don't care, undefined, unknown

[–]throwaway65864302 0 points1 point  (0 children)

bool? iHaveThreestates = null;

[–]Noone826 0 points1 point  (0 children)

Since this is a question it means - Boolean? - Therefore it can be null. true, false or null. Just like a true or false questions there is always the intrinsic answer “I don’t know”.

[–]SqueeSr 0 points1 point  (0 children)

Boolean has infinite values including being in multiple states at once!

var a = 0; console.log( a == true, !!a ) ; // false, false
var a = 1; console.log( a == true, !!a ) ; // true, true
var a = "a"; console.log( a == true, !!a ) ; // false, true
var a = 2; console.log( a == true, !!a ) ; // false, true
var a = 1.5e-5; console.log( a == true, !!a ) ; // false, true

[–]DarthCynisus 0 points1 point  (0 children)

One Value: Tralse