1
(show-data 'YHOO :config 'my-config)

I saw some Scheme code (in Guile) like the line above and get confused with the colon syntax :config .

What kind of language features of this? Is it a intrinsic feature of Scheme, or specially designed for the Guile lib? How does it work? I kept searching this online but still found nothing. Thanks.

Asumu Takikawa
  • 8,447
  • 1
  • 28
  • 43
lichgo
  • 523
  • 1
  • 6
  • 16

1 Answers1

3

It's a keyword and its purpose is to make the invocation of a procedure that receives optional arguments easier and convenient.

You can read more about this feature in this section of the Guile Reference Manual.

larpico
  • 116
  • 1
  • 3
  • 1
    Thanks! That's it! I noticed that (read-set! keywords 'prefix) should be added before using keywords without the # symbol. – lichgo Feb 04 '16 at 02:21