Stats
23,293
reputation 299k
reached 129
answers 50
questions 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 3
gold badges
- MarshalAug 6, 2021
- ElectorateMar 21, 2022
- FanaticNov 2, 2020
51
silver badges
- discussionOct 6
- SportsmanshipDec 22, 2021
- GeneralistOct 20
125
bronze badges
- designJul 3
- announcementsDec 14, 2023
- Tag EditorDec 6, 2024
Top tags
View all tags1,503
Score
97
Posts
54
Posts %
557
Score
36
Posts
20
Posts %
547
Score
39
Posts
22
Posts %
499
Score
34
Posts
19
Posts %
269
Score
15
Posts
8
Posts %
124
Score
28
Posts
16
Posts %

