The code one the left working in guile, but the same code on the right throwing an exception in Racket.
https://cdn.fosstodon.org/media_attachments/files/114/059/449/828/564/963/original/3ce2680367af80db.png
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))) ;; => #f
(syntax? (syntax hi)) ;; => #t
On the other hand TSPL4 book says that #'(+ 3 4) returns a valid list.
Who read RnRS? What does it say for this case?
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.