From: Jan Dubois Date: Tue, 16 Mar 2010 06:28:30 +0000 (-0700) Subject: Note that forbidding keywords as labels is controversial X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=343c800693b58170657091a89002f2b7e12f91b9;p=p5sagit%2Fp5-mst-13.2.git Note that forbidding keywords as labels is controversial --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index d9d0807..a16cf0d 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -927,7 +927,9 @@ Currently C "computes" the label value: $ perl -e 'goto print' Can't find label 1 at -e line 1. -It would be nice to forbid labels with keyword names, to avoid confusion. +It is controversial if the right way to avoid the confusion is to forbid +labels with keyword names, or if it would be better to always treat +bareword expressions after a "goto" as a label and never as a keyword. =head2 truncate() prototype