Re: Does declaration order matter in guile?

2023-02-13 Thread Maxime Devos
On 12-02-2023 19:46, wolf wrote: Also, I could not help to notice that when I use R6RS records it does work regardless of the order: (use-modules (rnrs records syntactic)) (define (x y) (display (q-foo y)) (newline)) (define-record-type q (fields foo))

Re: Does declaration order matter in guile?

2023-02-13 Thread Maxime Devos
On 13-02-2023 09:05, Sascha Ziemann wrote: You also can not ask Scheme about macros, because macros are not first-class-citizens. > > > This might be interesting: > https://matt.might.net/articles/metacircular-evaluation-and-first-class-run-time-macros/ You actually can ask (Guile)Scheme ab

Re: Does declaration order matter in guile?

2023-02-13 Thread Dr. Arne Babenhauserheide
Sascha Ziemann writes: > Am So., 12. Feb. 2023 um 20:52 Uhr schrieb Taylan Kammer > : >> >> On 12.02.2023 19:46, wolf wrote: >> >> > 1. When does order matter? What is going on here? >> >> The order matters in this case because the SRFI-9 implementation in Guile >> defines >> syntax (macros) ra

Re: Does declaration order matter in guile?

2023-02-13 Thread Sascha Ziemann
Am So., 12. Feb. 2023 um 20:52 Uhr schrieb Taylan Kammer : > > On 12.02.2023 19:46, wolf wrote: > > > 1. When does order matter? What is going on here? > > The order matters in this case because the SRFI-9 implementation in Guile > defines > syntax (macros) rather than just variables bound to proc