VLAZ
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
1
answer
2
questions
~11k
people reached
-
Member for 5 years, 10 months
-
34 profile views
-
Last seen Feb 21 at 19:59
Communities (45)
Top network posts
Badges (27)
Gold
1
Rarest
-
Nov 29
Silver
8
Rarest
-
Apr 22 '19
-
Jan 22 '19
-
Oct 25 '16
Bronze
18
Rarest
-
Oct 24 '16
-
Jan 22 '19
-
Feb 24 '19