Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
461
reputation
6
14

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
~6k
people reached
  • Member for 4 years, 2 months
  • 11 profile views
  • Last seen 3 mins ago

Top tags (6)

Score 8
Posts 2
Posts % 67
Score 8
Posts 2
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (3) All Questions Answers | Votes Newest

Badges (20)

Gold

Silver

6

Rarest

Bronze

14

Rarest