Re: use-modules in gexps

2020-02-07 Thread Ludovic Courtès
Hi, Ricardo Wurmus skribis: > When I wrote “state” I had the list of modules encountered in mind, so > that it would be possible to collect all marked instances of > “use-module” and hoist them to the top, in effect doing automatically > what is achieved manually by using “with-imported-modules”

Re: use-modules in gexps

2020-02-05 Thread Ricardo Wurmus
Ludovic Courtès writes: >> I wondered if perhaps we could add a G-expression compiler for module >> imports, so that instead of >> >> (with-imported-modules (source-module-closure '((my module))) >> #~(begin >> (use-modules (my module)) >> …)) >> >> we would do >> >> #~(begin >>

Re: use-modules in gexps

2020-02-05 Thread Ludovic Courtès
Hello! Ricardo Wurmus skribis: > I just watched the excellent FOSDEM talk about G-expressions by Chris > Marusich. One person asked at the end about why it is necessary to use > “with-imported-modules” when inside of the G-expression “use-modules” is > used. Chris and I discussed it (I think t

use-modules in gexps

2020-02-02 Thread Ricardo Wurmus
Hi Guix, I just watched the excellent FOSDEM talk about G-expressions by Chris Marusich. One person asked at the end about why it is necessary to use “with-imported-modules” when inside of the G-expression “use-modules” is used. I wondered if perhaps we could add a G-expression compiler for modu