Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems that
while () {}andwhile (1) {}are equivalent. Also note that empty parens* are inserted in the empty block.Another example of pre-defined compiler behaviour:
I would say that this is just the docs not reporting a special case.
* — To be precise, the
stubopcode is inserted. It does nothing, but serves a goto target for theenterloopopcode. There’s no real reason to note this. Deparse denotes thisstubop using empty parens, since parens don’t generate code.