On 7 December 2010 09:22, javajosh <javaj...@gmail.com> wrote:
> Anyway, I'm aware that open-parens is the signal to Invoke or Call
> something in Clojure - and therefore anything after the parens is
> Callable. It is the incredible diversity of 'Things I Can Invoke' that
> makes the parens difficult to a newb. (Although, I have to say,
> enumerating the possibilities is helping me immensely.)

It's probably more accurate to say that parentheses denote a list. In
a Lisp, it's important to grasp that executable code is represented by
a data structure.

To get the list to actually do something, the compiler must evaluate
it. The way it evaluates it depends on the type of its first element.
Broadly speaking, there are functions - which resolve at runtime - and
macros - which resolve at compile time.

Everything else is best thought of as syntax sugar. e.g. '(foo) is the
same as (quote foo).

- James

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to