Search code examples
schemeguile

Guile scheme - quoted period?


What does the following Guile scheme code do?

(eq? y '.)
(cons x '.)

The code is not valid in MzScheme, is there a portable equivalent across scheme implementations?

I am trying to port this code written by someone else. Guile seems to respond to '. with #{.}#, but I'm not sure what it means or how to do this in another scheme.


Solution

  • Okay, it seems that '. is valid syntax for (string->symbol ".") in Guile, whereas MzScheme at least requires |.| for the period as a symbol.