What replaces "with"?
I know `with` is supposedly a Bad Part but I never cared, because I just used it carefully (ditto, btw, with `var` statements in blocks).  Now, thought, I understand that `with` has been banished from EcmaScript 5.0 strict mode.  Sad panda is sad.

Here's my use-case: I have a library that exports some 20 or 30 functions.  Most of my code never uses any of the library but the parts that do, use them *a lot*.

Right now, my code looks like:

     with (mylib) {
         f1(f2(f1(), f3())); // five or 10 more lines like this
     }

To be compliant, I will have to 

a) move all of the functions to global scope (yuck).

b)

         mylib.f1(mylib.f2(mylib.f1(), mylib.f3()));

(which is verbose) or c)

         var x = mylib;
         x.f1(x.f2(x.f1(), x.f3()));
(which is slightly less verbose but less meaningful).

Please tell me that there's some better solution out there now.  What I want is some way to export the contents of a object into a level of scope (which is *exactly* what `with` was for).
What replaces "with"?
===

I know `with` is supposedly a Bad Part but I never cared, because I just used it carefully (ditto, btw, with `var` statements in blocks).  Now, thought, I understand that `with` has been banished from EcmaScript 5.0 strict mode.  Sad panda is sad.

Here's my use-case: I have a library that exports some 20 or 30 functions.  Most of my code never uses any of the library but the parts that do, use them *a lot*.

Right now, my code looks like:

     with (mylib) {
         f1(f2(f1(), f3())); // five or 10 more lines like this
     }

To be compliant, I will have to 

a) move all of the functions to global scope (yuck).

b)

         mylib.f1(mylib.f2(mylib.f1(), mylib.f3()));

(which is verbose) or c)

         var x = mylib;
         x.f1(x.f2(x.f1(), x.f3()));
(which is slightly less verbose but less meaningful).

Please tell me that there's some better solution out there now.  What I want is some way to export the contents of a object into a level of scope (which is *exactly* what `with` was for).