I never understood why "with" is considered a bad thing.  It's got a bad 
reputation, though it has some real world use cases that make a lot of sense.

Granted v8 doesn't optimize code using it.

On Jun 11, 2013, at 9:06 AM, Stephan Beal <[email protected]> wrote:

> On Tue, Jun 11, 2013 at 5:53 PM, Michael Schwartz <[email protected]> wrote:
> with (o) {
> 
> Yeah, i was hoping to avoid the 'with'. i assume there is no 
> clean/portable/sane way to do this in JS, and to be honest the idea never 
> occurred to me until today while tinkering on my own pet scripting engine 
> (which, by an accident of design, can do this from either native or script 
> code, but whether that's a feature or a bug is debatable).
> 
> Thanks, Andreas and Michael, for the responses.
> 
> -- 
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
> 
> -- 
> -- 
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to