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
414
reputation
1
4
15

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

6
answers
1
question
~10k
people reached
  • Member for 4 years
  • 30 profile views
  • Last seen 28 secs ago

Top Tags (15)

Score 14
Posts 1
Posts % 14
Score 14
Posts 1
Score 4
Posts 2
Score 3
Posts 1
Score 3
Posts 1
Score 3
Posts 1

Top Posts (7) All Questions Answers | Votes Newest

Badges (20)

Gold

1

Rarest

Silver

4

Rarest

Bronze

15

Rarest