fix dangling else example #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
That breaks the example—with that change, the association of the
elseis no longer ambiguous.Thank you for your reply, but I'm still a little confused.
According to Dangling else, if we don't specify the precedence of else, the following code:
can be interpreted as:
or
But why is the following code ambiguous?
It's not. And as such it's no use for illustrating this potential ambiguity.
Pull request closed