Shared and stacked environments

For my just announced package ShareAdd.jl I am thinking of adding there another macro @usingtemp, with the usage like

@usingtemp Pk1, Pk2

which would

  1. If the current environment is a temporary one, then install package Pk1 and Pk2 there, and import them by using Pk1, Pk2 .
  2. If the current environment is a package under development, then switch to a temporary environment, dev there your package, goto 1.

However actually I do not see any advantage of using temporary environments over the workflow currently envisioned in ShareAdd.jl .

Also, for BasicAutoloads.jl - I didn’t try it, but I think it can be made to work with ShareAdd.jl like

 ["@benchmark"]           => :(@usingany BenchmarkTools)

What do you think?