Hi,
In message "[ruby-talk:13181] Re: FEATURE REQUEST: 'my' local variables"
on 01/03/25, "Dan Muller" <dmuller / etrademail.com> writes:
|How about a variation on the let idea. In pseudo-BNF:
|
|with-expr := 'with' with-body var-init-list with-scope
|with-scope := block | statement* 'end'
|with-var-list :=
| '*'
| | with-var
| | '(' with-var ( ',' with-var )* ')' )*
|with-var = simple-var-name ( = expr )?
|var-list = simple-var-name ( ',' simple-var-name )*
Interesting. Let me put this in my brain archive of Ruby
possibility.
matz.