2,583
reputation
1
8
24

VLAZ
Loading…

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

6
answers
9
questions
~8k
people reached
  • Member for 3 years, 1 month
  • 185 profile views
  • Last seen 3 hours ago

Top tags (31)

Score 51
Posts 6
Posts % 40
Score 17
Posts 2
Score 16
Posts 2
Score 16
Posts 2
Score 16
Posts 2
Score 9
Posts 2

Top posts (15)

View all questions and answers

Badges (33)

Gold

1

Rarest

Silver

8

Rarest

Bronze

24

Rarest