Re: Getting all symbols in a Scheme file as a list

2024-02-04 Thread Matt Wette
On 2/4/24 11:50 AM, Christina O'Donnell wrote: I'm trying to write a Guile script to trace symbol definition and reference between modules in a large Guile repo (GNU/Guix), for the purposes of large scale refactoring. ? Seems a little bit baroque to me, I'd expect a simpler way of doing it.

RE: Getting all symbols in a Scheme file as a list

2024-02-04 Thread M
>Onderwerp: Getting all symbols in a Scheme file as a list The following will give you a list of all the symbols (unless I made some syntax errors) (also replace ‘ by a proper quote, e-mail program is corrupting it): (use-modules (ice-9 match)) (define (all-symbols s-exp) (match s-exp (

Getting all symbols in a Scheme file as a list

2024-02-04 Thread Christina O'Donnell
Hi, I'm trying to write a Guile script to trace symbol definition and reference between modules in a large Guile repo (GNU/Guix), for the purposes of large scale refactoring. I'm wondering how I could programmatically get all the values in a Scheme file as an S-expression. From the manual, I k

Re: unusual let binding (of lp) - in function element->xml from sxml simple

2024-02-04 Thread Andreas Reuleaux
Hi, and thanks to you, too. -Andreas Damien Mattei writes: > Hi Andreas, > a good explanation is here: > https://stackoverflow.com/questions/31909121/how-does-the-named-let-in-the-form-of-a-loop-work > personally i avoid to use it, as i can do the same with internal > definitions . > regards, >

Re: unusual let binding (of lp) - in function element->xml from sxml simple

2024-02-04 Thread Damien Mattei
Hi Andreas, a good explanation is here: https://stackoverflow.com/questions/31909121/how-does-the-named-let-in-the-form-of-a-loop-work personally i avoid to use it, as i can do the same with internal definitions . regards, Damien On Sat, Feb 3, 2024 at 10:49 PM Andreas Reuleaux wrote: > Hi, > >