IRC channel logs
2024-07-13.log
back to list of logs
<flatwhatson>fnat: you can use guile's lower-level records facility to query the fields of a record type <flatwhatson>(define-record-type <foo> (make-foo bar) foo? (bar foo-bar)) <graywolf>Hello :) Are modules ever garbage collected? <fnat>This is brilliant, thanks flatwhatson! <graywolf>Is there something like parametrize but for regular variables? I know I can use dynamic-wind, but it is bit verbose, so I wondered if there is a built-in helper for it... <haugh>Do syntax parameters actually require that the keyword be exported to the user as a top-level binding? <graywolf>flatwhatson: in elisp with dynamic scope sure, but (let ((%fresh-auto-compile #t)) (load ...)) will not work no? <haugh>I think I understand; similar to my beef with srfi-42, the idea is that the expansion happens in the context of the user module. So in the context of SPs, the user has to have lexical access to the unmodified parameter in order to parameterize it. I was trying to use SPs to avoid writing a general recursive descent transformer. Guess it's time to bite the bullet