Hi,
In message "[ruby-talk:5796] Re: local variables (nested, in-block, parameters, etc.)"
on 00/10/24, Dave Thomas <Dave / thomases.com> writes:
|> My current idea is to introduce new block parameter syntax <>, which
|> makes all variables inside block local. In addition, optional block
|> local variable declaration might be added, like:
|
|>
|> l = lambda{<a, b; c, d> ...}
|
|All variables, or just those mentioned after the semicolon? If it's
|all variables, then you could probably not need the ';c, d' part.
All variables. The part after semicolon will not be lhs. Probably
it's not needed but I don't prefer AWK way to divert unused parameters
as local variables.
matz.