4,942
reputation
6
8

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

4
answers
3
questions
~646
people reached
  • Member for 5 years, 4 months
  • 24 profile views
  • Last seen 16 hours ago

Top tags (9)

Score 10
Posts 6
Posts % 86
Score 2
Posts 1
Score 2
Posts 1
Score 2
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (7)

Badges (14)

Gold

Silver

6

Rarest

Bronze

8

Rarest