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" <[email protected]>写道:
>
> On 22 Jun 2011, at 18:14, Roberto Ierusalimschy <[email protected]> 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  <[email protected]>  http://dotat.at/
+1 for per block scopes of label :)