R has such a function:
http://www.inside-r.org/r-doc/base/with

But given the mess that is R's scoping rules, this is perhaps not something 
we should attempt to emulate. I think Toivo's suggestion is very reasonable.

On Friday, 22 May 2015 05:53:39 UTC+1, Toivo Henningsson wrote:
>
> I think at the point were you start to mark up the with variables 
> specially (which I think is a good thing), you might as well do eg 
>
> let f = foo 
>     f.a = 1 
>     f.b = "frozzbozz" 
>     # ... 
> end 
>
> It's just two characters and it doesn't require any new language features 
> at all. 

Reply via email to