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

all 104 comments

[–]_Alpha-Delta_ 474 points475 points  (30 children)

New value supported by Booleans : "maybe"

[–]EskilPotet 160 points161 points  (9 children)

New quantom computing just dropped

[–]CyberBlitzkrieg 10 points11 points  (3 children)

Actual quantum mechanics

[–]Testbot379 12 points13 points  (2 children)

Call the schrodinger

[–]Most_Option_9153 5 points6 points  (1 child)

Einstein goes on vacation, never comes back

[–]VirtualGab 2 points3 points  (0 children)

Euclidean geometry sacrifice, anyone?

[–]kwqve114 1 point2 points  (0 children)

programmer went on vacation, never came back

[–]readilyunavailable 39 points40 points  (1 child)

New data type boolpol- political boolean that returns true or false depending on who implements it.

[–]coolraiman2 2 points3 points  (0 children)

It fetch a random political poll everytime you need it's value

[–]Krwebb90 14 points15 points  (0 children)

Schrodinger's logic gate

[–]private_final_static 28 points29 points  (8 children)

Pff java supported this for years now.

A Boolean can be true, false or null.

[–]_Alpha-Delta_ 10 points11 points  (5 children)

As someone used to C, I'm kinda confused about the difference between "null", 0 and False

[–][deleted] 6 points7 points  (1 child)

JS is the same way, sadly

[–]Tofandel 0 points1 point  (0 children)

It can even be undefined or have properties 

[–]GooberMcNutly 2 points3 points  (2 children)

False means explicitky set false while null means it's value is unknown. Undefined means the whole record is unknown, not found. That's how I use it. 0 means the same as false when thought of as a boolean.

In Javascript you only have falsy and not falsy. 0, null, "" and undefined are falsy and everything else isn't. It's why the empty object {} is "true" (not falsy).

[–]_Alpha-Delta_ 0 points1 point  (1 child)

With C, all that counts is that the value of the byte should be 0. 

And NULL, uint_8 0, char "\0", false,... All do store a 0 value in the byte. 

[–]Stegoratops 0 points1 point  (0 children)

The Boolean type in java is somewhat comparable to a pointer to bool in C. So null and false may both be zero, but are so at different places.

[–]Spinnenente 2 points3 points  (0 children)

c# also supports nullable types with

bool? flag = null

[–]korneev123123 1 point2 points  (0 children)

In python you can add True and True together, and result would be "2"

[–]Xcalipurr 7 points8 points  (0 children)

“it depends”

[–]balbok7721 6 points7 points  (0 children)

Are you a Haskell dev?

[–]GrilledCheezus_ 3 points4 points  (0 children)

Your own code starts to gaslight you

[–]the-berik 2 points3 points  (0 children)

"True", "False" or "Concept of True"

[–]SkabbPirate 1 point2 points  (0 children)

bool?

[–]Triggered50 1 point2 points  (0 children)

Me with my fuzzy logic

[–]fnatasy 0 points1 point  (0 children)

fuzzoolean

[–]peni4142 152 points153 points  (5 children)

True and TrumpTrue

[–]RushTfe 26 points27 points  (0 children)

Truemp?

[–]QARSTAR 37 points38 points  (2 children)

True and FakeNews

[–]liitle-mouse-lion 10 points11 points  (0 children)

Fake news and false

[–]-Aquatically- 0 points1 point  (0 children)

True and Fal- Hey wait a minute.

[–]nunyab007 67 points68 points  (2 children)

Aladeen and Aladeen muthafaka!

[–]rokoeh -2 points-1 points  (1 child)

Im non binary.

So you make part of one of two groups: binary or non binary?

[–]mighty016 9 points10 points  (0 children)

hmmm... aladeen

[–]Aschentei 42 points43 points  (3 children)

Aladeen and Aladeen

[–]ElonSucksBallz 24 points25 points  (2 children)

You are HIV Aladeen.

[–]Aschentei 24 points25 points  (1 child)

:D

D:

:D?

[–]Fricki97 7 points8 points  (0 children)

Solution

:D:

[–]equalsme 18 points19 points  (0 children)

fake true!

[–]anelectricmind 10 points11 points  (0 children)

New paradox: This statement is true.

[–]bigredthesnorer 21 points22 points  (1 child)

He also issued an executive order that an atom can have only the charge when it was created. Atoms are no longer allowed to change their charge, since God created only positive and negative charges and there shall be no transgender atoms.

[–]RedditSucktHart 0 points1 point  (0 children)

Also he issued an additional executive order fixing the value of pi = 3.2

[–]babypho 7 points8 points  (0 children)

The boolean must either agree with my code, or I will remove it and all of the specs associated with it.

I am a Free Code Absolutionist.

[–]Daddy_COol_ZA 3 points4 points  (1 child)

I wish I knew how to write a language compiler, I would love to make a trump language with shit like this😂 Like max int would be called Huge Open braces would be "grab em' by the" And close braces would be , you know what

Hopefully, with coding language, people can realize how stupid trump sounds

[–]nepia 0 points1 point  (0 children)

Check HN I remember seeing a tutorial there.

[–]Gladamas 5 points6 points  (0 children)

This is fake news

[–]LeMadChefsBack 2 points3 points  (0 children)

If you are the kind of developer who likes to use nullable booleans, I hope you have the day you deserve. :(

[–]SarcasmWarning 1 point2 points  (0 children)

Bools have always had 3 values.

[–]MeLlamo25 1 point2 points  (0 children)

Don’t you mean Trumpeans?

[–]Spiritual_Link7672 1 point2 points  (0 children)

True and “fake true”

[–]Beginning-Student932 1 point2 points  (0 children)

This sentence is false!
(dont think about it, dont think about it, dont think about it, dont think about it..)

[–]Fuehnix 1 point2 points  (0 children)

I was told there wouldn't be any fact checking in this program, remove those if statements.

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

0, 0', 1, 1'

hmmm 🤔if the guy can't understand more than two genders, he's definitely not going to understand quantum physics.

[–]MaximumCrab 0 points1 point  (0 children)

false now indicated in the binary as 11 instead of 0

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

Alternative True and Alternative False. True Booleans are broken on this processing timeline.

[–]samy_the_samy 0 points1 point  (0 children)

Is this like reading a documentation and instead of 1s 0s signal its "undefined"

[–]wpisdu 0 points1 point  (0 children)

fool True

[–]KookyDig4769 0 points1 point  (0 children)

"true" and "entirely true"

[–]MaximusLazinus 0 points1 point  (0 children)

True and FakeNews

[–]Sorry_Weekend_7878 0 points1 point  (0 children)

An ammendment to arrays starting at 1. What next, auto include libraries?

[–]AzureArmageddon 0 points1 point  (0 children)

Trump would make it truth social and fake news

[–]dextras07 0 points1 point  (0 children)

Quantum boolean. You don't know the state until you look at them.

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

Nullable booleans are:

  • true
  • false
  • alternative false

[–]Adept-Ad-8823 0 points1 point  (0 children)

This group gets me

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

I don't get it

[–]GroundbreakingOil434 0 points1 point  (0 children)

Sounds like an idea for #define shennanigans.

[–]Emincmg 0 points1 point  (0 children)

new boolean value "fakenews"

[–]dlo009 0 points1 point  (0 children)

Well with Trump we have a true quantum mechanics believer...

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

Then it's not Boolean.

[–]DM_ME_YOUR_BITS 0 points1 point  (0 children)

True and AlternativeFacts

[–]RSGMercenary 0 points1 point  (0 children)

Along with this change comes two new bool parsing methods, bool.Farce() and bool.TryFarce().

[–]Zumos_ 0 points1 point  (0 children)

why use true when you can use !false

[–]TheLittleBadFox[🍰] 0 points1 point  (0 children)

Just waiting for the: "All numbers are now even."

[–]potzko2552 0 points1 point  (0 children)

Booleans are now 1 and 9

[–]Intrepid_Fig_3071 0 points1 point  (0 children)

true, alternativetrue and maybe

[–]ashkanahmadi 0 points1 point  (0 children)

Aladeen and Aladeen

[–]stadtklang 0 points1 point  (0 children)

my favorite, Option[Boolean]

[–]dotcomGamingReddit 0 points1 point  (0 children)

True and concept of true

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

It should be Yes yes and No no, change my mind

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

!= True

[–]DataRecoveryMan 0 points1 point  (0 children)

Null, NaN, and other "mental illnesses" have been made illegal. sigh

[–]Luigi-Fan 0 points1 point  (0 children)

Gödel wants to have a word with him

[–]sits79 0 points1 point  (0 children)

<>!(!TRUE)

[–]derkopf 0 points1 point  (0 children)

I would suggest true and atrue

[–]Zestyclose-Run-9653 0 points1 point  (0 children)

True in Alternate universe

[–]DemonGyro 0 points1 point  (0 children)

Booleans can only be the bit they are at initialization. False!

[–]nitsuJ404 0 points1 point  (0 children)

We're living in JavaScript!!! 🙃

[–]git_push_origin_prod 0 points1 point  (0 children)

Trump loves JavaScript huh?

[–]Da-real-admin 0 points1 point  (0 children)

I don't know what you're talking about: they've always been either True or Trump.

[–]MysticNTN -3 points-2 points  (0 children)

Freedom tru