Re: function evaluation inside list literal

2012-05-28 Thread Chris Ford
To add to Tassilo's answer, quoting blocks evaluation all the way down. So even though I don't have the functions foo or bar defined: user=> '(foo (bar)) (foo (bar)) There's no error, because neither is evaluated. Chris On 28 May 2012 18:58, Tassilo Horn wrote: > Maris writes: > > > I have n

Re: function evaluation inside list literal

2012-05-28 Thread Tassilo Horn
Maris writes: > I have noticed that my functions don't get evaluated if they are > inside a list: > > '({:regex (re-pattern (str root-topic "/price-change//")) >:metadata (get-metadata :price-change) >:subscribe nil}) That's because you've quoted (') the list and

function evaluation inside list literal

2012-05-28 Thread Maris
I have noticed that my functions don't get evaluated if they are inside a list: '({:regex (re-pattern (str root-topic "/price-change//")) :metadata (get-metadata :price-change) :subscribe nil}) (get-metadata :price-change) is just a list Whereas it works if I us