Stats
6,904
reputation
148k
reached
69
answers
1
question
Loading…
About
To be, or not to be, that is the question
Translating it into code, we get
theQuestion = 2b || !2b
This returns true
for any value of 2b
, making the evaluation redundant. We can optimise it by removing the expression and substituting with the result.
theQuestion = true
Badges
View all badges
2
gold badges
-
ElectorateJan 16, 2019
-
FanaticMar 9, 2020
21
silver badges
-
DeputyDec 11, 2019
-
Strunk & WhiteJan 27
-
ConventionApr 12
51
bronze badges
-
magicFeb 9, 2021
-
DisciplinedJan 23, 2020
-
Vox PopuliDec 18, 2018
Top tags
View all tags
249
Score
25
Posts
36
Posts %
224
Score
8
Posts
11
Posts %
96
Score
5
Posts
7
Posts %
95
Score
9
Posts
13
Posts %
86
Score
5
Posts
7
Posts %
84
Score
8
Posts
11
Posts %
Top Meta posts
4
7