Re: Clojure terminology

2014-09-12 Thread jvanderhyde
Thanks for the help, everyone. You managed to pin down my problem. I was using Clojure from the ground up and a Scheme book, and the two together got me confused. So, I can say it like this: Every expression is evaluated (meaning converted to a value), unless it is quoted. Every expression

Re: Clojure terminology

2014-09-12 Thread jvanderhyde
Another random thought: What to you call this? [(+ 2 3) (+ 4 5)] It is an expression, but it is not a literal--I cannot say it evaluates to itself. Sorry if I'm being pedantic. Maybe it doesn't matter. Terminology is important, though, when I'm trying to teach. -- You received this message

Clojure terminology

2014-09-11 Thread jvanderhyde
I'm new to Clojure, but I'm teaching a course on it this year to undergrads. I'm having a little trouble with terminology, partly because Clojure departs from other languages (such as Scheme) on some terms (such as atom). I want to say something like this: A word is considered a var unless it

Re: Clojure terminology

2014-09-11 Thread jvanderhyde
Thank you for the help. What is the difference between a form and an s-expression? The Clojure Glossary https://github.com/clojuredocs/guides/blob/master/articles/language/glossary.md defines form as a valid s-expression. What is an example of an invalid s-expression? I'm not sure token is