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
197
reputation
1
1
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

1
answer
1
question
~151
people reached
  • Member for 4 years, 1 month
  • 13 profile views
  • Last seen 5 mins ago

Top tags (6)

Score 3
Posts 1
Posts % 50
Score 3
Posts 1
Score 3
Posts 1
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (2) All Questions Answers | Votes Newest

Badges (17)

Gold

1

Rarest

Silver

1

Rarest

Bronze

15

Rarest