Deal of the Day

Home » Main » Manning Forums » 2009 » Clojure in Action

Thread: keywords and symbols

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0 - Pages: 1

Posts: 26
From: US
Registered: 11/11/10
keywords and symbols
Posted: Nov 13, 2010 5:52 PM
  Click to reply to this thread Reply

I was left wondering: are keywords symbols, as in Common Lisp, where they are symbols with the particular property that they evaluate to themselves? or are they a different type altogether?

Actually, I find it hard to understand how a keyword can evaluate to itself and be a function at the same time. If keywords are functions, they can't be symbols, can they?

Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff
Manning Developmental Editor