Stack Exchange Network

Stack Exchange network consists of 174 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
321
reputation
1
3
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

3
answers
1
question
~8k
people reached
  • Member for 3 years, 10 months
  • 25 profile views
  • Last seen 5 hours ago

Top Tags (8)

Score 14
Posts 1
Posts % 25
Score 14
Posts 1
Score 2
Posts 1
Score 2
Posts 1
Score 2
Posts 1
Score 2
Posts 1

Top Posts (4) All Questions Answers | Votes Newest

Badges (18)

Gold

1

Rarest

Silver

3

Rarest

Bronze

14

Rarest