Re: whats the meaning of alias ?

2010-01-03 Thread Mike Hogye
Maybe the reader does _not_ eagerly resolve "c/foo" when the top-level enclosing form is a "do", but it _does_ eagerly resolve "c/foo" when the top-level enclosing form is a function? On Jan 3, 10:02 am, Mike Hogye wrote: > Now that you understand it, c

Re: whats the meaning of alias ?

2010-01-03 Thread Mike Hogye
Now that you understand it, can you explain it me? :) This simplified version of your snippet still throws the "No such namespace: c" exception: (ns coretest) (defn foo [x] x) (= 1 (do (alias 'c 'coretest) (c/foo true))) But the following completes without any exceptions:

Re: whats the meaning of alias ?

2010-01-03 Thread Mike Hogye
Wait, I'm an idiot. Ignore my last message ... On Jan 3, 9:39 am, Mike Hogye wrote: > Roger, > > What Clojure version are you using? When I run your snippet with HEAD, > I get: > > FAIL in clojure.lang.persistentlist$emptyl...@1 (blah2.clj:11) > test alias function &

Re: whats the meaning of alias ?

2010-01-03 Thread Mike Hogye
Roger, What Clojure version are you using? When I run your snippet with HEAD, I get: FAIL in clojure.lang.persistentlist$emptyl...@1 (blah2.clj:11) test alias function expected: (= 1 (do (alias (quote c) (quote coretest actual: (not (= 1 nil)) Which is presumably what you want to see. On

Re: whats the meaning of alias ?

2010-01-02 Thread Mike Hogye
Here's what I was thinking of: http://groups.google.com/group/clojure/browse_thread/thread/c093ac2c7e7302ab I believe it's the same phenomenon. On Jan 2, 8:03 pm, Mike Hogye wrote: > I can't seem to find the explanation I once saw for this. It's > something like: &q

Re: whats the meaning of alias ?

2010-01-02 Thread Mike Hogye
I can't seem to find the explanation I once saw for this. It's something like: "c/foo" is resolved when the "do" form is _read_ ... at which point the alias hasn't happened yet. On Jan 2, 3:14 pm, Roger Gilliar wrote: > Hi ! > > Given the code below, I'm wondering why I get > > No such namespace:

Re: Any interest in a Nova Clug?

2009-12-18 Thread Mike Hogye
Reston is a great location for me and my coworkers, too. On Dec 17, 9:50 am, Mike Hogye wrote: > I'm interested, but may have a hard time making it consistently. I do > have a coworker or two who might have both interest and availability. > > On Dec 16, 1:14 pm, Matt wro

Re: Any interest in a Nova Clug?

2009-12-17 Thread Mike Hogye
I'm interested, but may have a hard time making it consistently. I do have a coworker or two who might have both interest and availability. On Dec 16, 1:14 pm, Matt wrote: > I'm looking into setting up a Northern Virginia Clojure User Group and > would like to know who is interested. I know there

Pragmatic Studio course

2009-12-16 Thread Mike Hogye
I would really like to go to the Pragmatic Studio's 3-day Clojure course (https://pragmaticstudio.com/clojure). Taught by Stuart Halloway, and Rich himself, no less! ... But $1500 sounds like a lot. Can anybody help me convince myself that it's worth that much? -- You received this message becau

Re: Funding Clojure 2010

2009-12-15 Thread Mike Hogye
for people who want to build it themselves. > > On Dec 15, 8:50 am, Mike Hogye wrote: > > > +1 for the idea of offering a _thing_ for sale. > > > The company I work for isn't going to give a donation; that's just not > > something it does. But if there

Re: Funding Clojure 2010

2009-12-15 Thread Mike Hogye
+1 for the idea of offering a _thing_ for sale. The company I work for isn't going to give a donation; that's just not something it does. But if there were a _thing_ I could purchase on the company's dime, well ... it's much more standard for a company to make a purchase than a donation. Particula

Re: with-command-line and empty/nil args list

2009-11-14 Thread Mike Hogye
Thanks! -- 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

why a defn- but not a def- ?

2009-11-14 Thread Mike Hogye
Why is there an easy way to def a private function (defn-), but no similarly easy way to def an arbitrary var as private? -- 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 fro

with-command-line and empty/nil args list

2009-11-13 Thread Mike Hogye
Using with-command-line from clojure.contrib.command-line, if the list of command-line args is empty or nil, the usage message is printed (and the nested code is not run), even if all the options have default values. The following (note that the first arg is the empty list) prints the usage messag