111
reputation
5

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
0
questions
0
people reached
  • Member for 4 years, 5 months
  • 1 profile view
  • Last seen Sep 17 at 8:00

Top tags (2)

Score 1
Posts 1
Score 1
Posts 1

Top posts (1) All Questions Answers | Votes Newest

Badges (5)

Gold

Silver

Bronze

5

Rarest