Heya,

Chris Marusich <[email protected]> skribis:

> At the Guile REPL, why does macro expansion of a use-package-modules
> invocation fail when the package in question doesn't exist, but it
> succeeds when the package exists?

That’s because of the ‘eval-when’ form there, which forces module
resolution to happen *also* at macro-expansion time.

Notice that the same happens with ‘use-modules’, for the same reason:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,expand (use-modules (foobar))
While executing meta-command:
ERROR: no code for module (foobar)
--8<---------------cut here---------------end--------------->8---

Ludo’.

Reply via email to