If it's nullable, then it can't be a boolean.
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Three-state[^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Ah, but null is the absence of a value, so the Boolean actually disappears up the division between its cheeks values.
I wanna be a eunuchs developer! Pass me a bread knife!
-
Three-state[^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
-
Henry Minute wrote:
so why call it a nullable bool
No such beast exists, nor shall it ever, (well as long as we're talking C#). It's an instance of the generic nullable struct with an underlying boolean value type. Obviously this doesn't roll of the tongue so well however, maybe nullable representative boolean?
Rhys "I'd rather die on my feet than live on my knees"
goblinTech wrote:
No such beast exists,
That may well be true, but I have seen many such references.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
-
Cool Italian Kids say Roma. :cool:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Henry Minute wrote:
I can only come up with truelean or trilean.
Almost. There is Boost.Tribool[^] library. An example of use:
tribool a (true);
tribool b (false);
tribool c (indeterminate);if (indeterminate (a) && !b) do_something();
-
goblinTech wrote:
No such beast exists,
That may well be true, but I have seen many such references.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Yeah, I know. The terminology used in describing nullable types and the misuderstanding it leads to is a bit of a pet hate, as you may well guess from my reply :-)
Rhys "I'd rather die on my feet than live on my knees"
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Buddhist bool
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Henry Minute wrote:
so why call it a nullable bool?
Anyone got a better name?A Boolean Nullable would be technically more accurate. -Richard
Hit any user to continue.
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Surely it should be called 'noolean'?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Closest I can come up with is ternary. There is Balanced Ternary[^], but the "don't care" value is 0 (-1 false, +1 true) though null might better describe a don't "care state" ?
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Closest I can come up with is ternary. There is Balanced Ternary[^], but the "don't care" value is 0 (-1 false, +1 true) though null might better describe a don't "care state" ?
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
Don't come with that. It reminds me too much of a database where some (censored word) declared boolean columns as varchar(1) and used the letter 'X' as true and null as false. And of course his application failed when there was anything else than 'X' or null in those columns. No doubt that he also would have created a similar chaos if he had known that you can have nullable value types.
"Dark the dark side is. Very dark..." - Yoda ---
"Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi -
How about a 'Bacon'? Seems as good a choice as any.
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
I like bullean
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
In Spanish a "trilero" is a guy who use three cards or pots to hide a small ball to cheat tourists in crowded streets... so avoid that name... if you don't avoid it one of your variables could go to jail... :rolleyes:
[www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.
-
I'm sure that a subject of such import must have been discussed here before, but if so, I missed it. If it can have more than two values it cannot really be a boolean value, so why call it a nullable bool? Anyone got a better name? I can only come up with truelean or trilean.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
It's tri-curious.
And sometimes when you're on, you're really f***ing on And your friends they sing along and they love you But the lows are so extreme that the good seems f***ing cheap And it teases you for weeks in its absence Rilo Kiley - "A Better Son/Daughter"
-
In Spanish a "trilero" is a guy who use three cards or pots to hide a small ball to cheat tourists in crowded streets... so avoid that name... if you don't avoid it one of your variables could go to jail... :rolleyes:
[www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.
Joan Murt wrote:
In Spanish a "trilero" is a guy who use three cards or pots to hide a small ball
In America I believe they use one cup but two girls.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
-
Joan Murt wrote:
In Spanish a "trilero" is a guy who use three cards or pots to hide a small ball
In America I believe they use one cup but two girls.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.