all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* G-exp '#$... vs. (list $#@...)
@ 2024-07-03 22:42 Felix Lechner via
  2024-07-04 11:28 ` Carlo Zancanaro
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Lechner via @ 2024-07-03 22:42 UTC (permalink / raw
  To: help-guix

Hi,

I'm in the weeds with several G-exp nesting levels. The code works, but
what is the difference between

    '#$something       and       (list #$@something)      ?

The latter seems to evaluate.

Thanks!
Felix


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: G-exp '#$... vs. (list $#@...)
  2024-07-03 22:42 G-exp '#$... vs. (list $#@...) Felix Lechner via
@ 2024-07-04 11:28 ` Carlo Zancanaro
  0 siblings, 0 replies; 2+ messages in thread
From: Carlo Zancanaro @ 2024-07-04 11:28 UTC (permalink / raw
  To: Felix Lechner; +Cc: help-guix

Hi Felix!

On Wed, Jul 03 2024, Felix Lechner via wrote:
> '#$something

This expands to a quoted form, so whatever "something" splices in ends
up quoted in the output.

> (list #$@something)

This expands to a (list ...) form, where the elements of "something" end
up spliced as the list elements. Each of those elements will be
evaluated in the result, because they aren't quoted.

Carlo


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-04 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 22:42 G-exp '#$... vs. (list $#@...) Felix Lechner via
2024-07-04 11:28 ` Carlo Zancanaro

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.