fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Today I learned that Racket and Guile represent syntax objects for lists differently.

I don't know yet which one I prefer, because in Guile `syntax` not always returns a syntax-object as one could expect, sometimes it returns a list.

(use-modules (system syntax))
(syntax? (syntax (+ 3 4))) ;; =>
(syntax? (syntax hi)) ;; =>

On the other hand TSPL4 book says that #'(+ 3 4) returns a valid list.

Who read RnRS? What does it say for this case?

Andrew Tropin

BTW, today I implemented `syntax->list` using a `syntax-case`. I needed it to get a list of values from args pattern variable of (arg1 args ...) pattern.

And only now I realized that I don't actually need it, because #'(args ...) is already a list in Guile.

It solves my previous question about syntax->list I had last week:
fosstodon.org/@abcdw/114018596

I'm curious: is it too geeky stuff to talk about out loud or is it still ok?)

@abcdw

This flies way over my head

But it's still cool