4,252 reputation
52342
bio website
location
age
visits member for 4 years, 2 months
seen 43 mins ago

ProjectFred


Dec
18
awarded  Great Answer
Dec
17
comment How to define “or” logically
Ah, of course. I knew there had to be a deeper reason :)
Dec
17
comment How to define “or” logically
@JensG Agreed in general, but I have stumbled upon one good use case of comparing against false, namely if (someCollection.add(someElement) == false), which means "if adding the element did not work", and it reads a lot more natural to me than negating via !.
Dec
17
comment How to define “or” logically
@BlueHat But then the two returns would be indented differently ;)
Dec
17
comment How to define “or” logically
How about False ||| False = False and _ ||| _ = True instead? :)
Dec
17
comment How to define “or” logically
@Matthew I doubt his language has ?: if it doesn't even have or :)
Dec
16
awarded  Good Answer
Dec
16
awarded  Nice Answer
Dec
16
comment How to define “or” logically
@user3687688 Can you please clarify the primitives we are allowed to use?
Dec
16
answered How to define “or” logically
Dec
13
comment Is it ok to access private members while doing same class comparison?
You seem to imply that there is a well-defined, generally agreed-up solid definition of what "object-oriented" actually means... ;)
Dec
6
awarded  Notable Question
Sep
26
awarded  Yearling
Sep
24
awarded  Autobiographer
Sep
6
comment When to use C over C++, and C++ over C?
@dysoco Since when does C++ have virtual constructors?
Jul
3
awarded  Nice Question
May
17
awarded  Popular Question
May
4
comment If null is bad, why do modern languages implement it?
What about in the finalizer of such an object, where the object is finalized because the code that was supposed to fill in the reference threw an exception? C++ solves that problem by not destructing objects that weren't fully constructed :)
Jan
12
awarded  Notable Question
Jan
8
awarded  Nice Question