lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



在 2011-6-26 晚上9:33,"Tony Finch" <dot@dotat.at>写道:
>
> On 22 Jun 2011, at 18:14, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>
> >> - disallow a definition of a label if that label is already visible in
> >> the scope.
> >
> > this seems a nice compromise between one-per-function and one-per-block.
>
> I agree. I also like the argument that block scope makes code more composable - easier for automated code generators and for formal analysis.
>
> Tony.
> --
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
+1 for per block scopes of label :)