Re: Persistent storage

2008-12-19 Thread Mon Key
Hans Hubner's BKNR framework for CL explores this in a very interesting way - while relying on CLOS meta-object protocol the ideas could prob. be extended to Clojure. With some ABCL interaction this would make CL -> Clojure || Clojure -> CL interop possible at the JVM level with persistence... So

Re: Clojure vs. CL macros question

2008-12-19 Thread Mon Key
> This seems like a reasonable restriction for Clojure too. Third rule. Macros break the rules. Don't place arbitrary restrictions on rule breaking :P s_P On Dec 19, 2:05 pm, Stuart Halloway wrote: > According to Paul Graham's On Lisp, macroexpanders should be purely   > functional, and you sh

Re: syntax philosophy

2008-12-19 Thread Mon Key
> I have a strong dislike for the concept of TIMTOWTDI (There is more > than one way to do it . This should be a guiding design goal for any core lisp devel. Get the core right and TIMTOWTDI is a `side effect' of good design rather than the inverse. s_P On Dec 19, 7:36 am, "Mark Volkmann" wrote

Re: Preparing for Release 1.0 (was: Re: 20081217 Release)

2008-12-19 Thread Mon Key
> I would propose, that the files are hosted where ever > they are hosted now with suitable labels with which > Clojure version they work. This works out of the box > with the least amount of trouble. > > Meikel In contrast to the monolithic GG Code repo or C*AN or git/hg/bzr.*hubs I find that th

Re: FAQ

2008-12-19 Thread Mon Key
Some thoughts on really stupid things that have tripped me up: - How do I exit Clojure - srsly C-c - Whatsa JVM - does this mean Clojure is really just Java with parens? - Whatsa Classpath? this answer presents the *ALL* important opportunity to mention that *nix uses `:' to separate paths wher

Re: Emtpy (filter ...) Result Yields nil; Could / Should It Be An Empty List?

2008-12-16 Thread Mon Key
> This is why flatten's behavior was considered a bug. In Clojure, an > empty sequence is equivalent to nil, not to '(nil). This does not comport with the various differences enumerated @ http://clojure.org/lisps Perhaps they need to be changed. RH care to weigh in on this? which says: "() is n

Re: understanding quoting

2008-12-15 Thread Mon Key
For FAQ style plain text I like having the RHS comments moved below the S-Expression as I can C-n down the file and do C-x C-e evaluation to REPL as I go. Once the RHS ;;;Comments are below the S-Expressions I find i like having a symbol to indicate the eval => I took the liberty of re-formattin

Re: Emtpy (filter ...) Result Yields nil; Could / Should It Be An Empty List?

2008-12-15 Thread Mon Key
whoops, chopped of the end of that last message - forgot the nasake-no ichigeki user> (seq? '(nil)) ==|]==>true --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Emtpy (filter ...) Result Yields nil; Could / Should It Be An Empty List?

2008-12-15 Thread Mon Key
he only source of codified design rationale. > Sorry, Mon Key, but I have to agree with Randall here. Is it not ok to have free will around here? :) While it may be reasonable to expect (flatten nil) to return nil, as written and as documented in the working context - flatten doesn't appea

Where is the Clojure FAQ?

2008-12-15 Thread Mon Key
Clojure needs a FAQ - a plain old school vanilla FAQ. Clojure.org is useful; The wiki is useful; The gg Group is useful; The /# clojure is useful; (doc some-fn) is useful; (show some-fn) is useful; None of these are a FAQ. None accomplish what a FAQ accomplishes. Lots of people look for a FAQ

Re: Emtpy (filter ...) Result Yields nil; Could / Should It Be An Empty List?

2008-12-15 Thread Mon Key
> > > I would expect (flatten nil) => nil Why? => nil nil is not a sequence - your expectation is that Clojure flatten and return `nothing'... which *would* be a bug Not a bug. Implementation deficiency/wrong expectations/ preconceptions/mis-application of earlier idiom to new platform. @ http

Re: Emtpy (filter ...) Result Yields nil; Could / Should It Be An Empty List?

2008-12-14 Thread Mon Key
> user=> (flatten nil) > (nil) Not a bug. flatten returns a sequence - in this case a sequence containing 'nil. How else would you flatten on nil? In the former cases the flatten returns the seq - nil Can Clojure return an empty sequence otherwise? (def x ()) (first x) => nil (def y x) y => n

Re: Emtpy (filter ...) Result Yields nil; Could / Should It Be An Empty List?

2008-12-14 Thread Mon Key
> user=> (flatten nil) > (nil) Not a bug. flatten returns a sequence - in this case a sequence containing 'nil. How else would you flatten on nil? In the former cases the flatten returns the seq - nil Can Clojure return an empty sequence otherwise? (def x ()) (first x) => nil (def y x) y => n

Re: Lisp/Clojure doesn't have syntax?

2008-12-11 Thread Mon Key
> Clojure does not allow for programmer-defined > reader macros (unlike other lisps). I know this has been touched upon last Spring - and Stu Halloway refs at least one discussion of this in his book. >From a practical standpoint I am beginning to understand more why the choice was made to not s

Re: Lisp/Clojure doesn't have syntax?

2008-12-11 Thread Mon Key
> Clojure does not allow for programmer-defined > reader macros (unlike other lisps). I know this has been touched upon last Spring - and Stu Halloway refs at least one discussion of this in his book. >From a practical standpoint I am beginning to understand more why the choice was made to not s

Re: defining keywords ?

2008-12-11 Thread Mon Key
cool. was wondering if this was possible the other day myself :) Good to know RH & crew have accounted for this possibility already. s_P On Dec 11, 10:08 pm, Chouser wrote: > On Thu, Dec 11, 2008 at 7:49 PM, Robert Koberg wrote: > > > Hi, > > > Would it be desirable to further define keywords

Re: PCL -> Clojure examples updated

2008-12-09 Thread Mon Key
The PCL -> Clojure blog helped turn me on to Clojure... She's a valuable asset. Glad to see she hasn't been left wearing a red dress out in the rain. You must be swamped with the book deadlines. Thank You for making the time to continue sharing and updating the pcl -> clojure code. On Dec 9, 10:

Re: Thanks for Clojure

2008-12-07 Thread Mon Key
> I've been converting some projects to Clojure for the past few months... > but thinking about them enough to express the issue clearly has so far > always resulting in my solving them easily. This is GREAT to hear. I personally place considerable measure on accounts such as yours because they o

Re: My Clojure Emacs Setup (I'll show mine if you show yours)

2008-12-05 Thread Mon Key
Nice blog entry :) My setup tends to mirror yours esp. as I've culled most of it from your blog over the years... Most of my startup scripts are modified versions of those you've shared elsewhere. I don't segment it out quite so much as it makes for transporting directory trees difficult, and my

Re: (doc)strings after param in defn

2008-12-04 Thread Mon Key
n-also-do-two x y))) On Dec 4, 5:41 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi, > > Am 04.12.2008 um 18:30 schrieb Mon Key: > > > It looks like I was getting turned around by the implicit do (and by > > my preconceptions coming from other Lisps where the docstr

Re: (doc)strings after param in defn

2008-12-04 Thread Mon Key
#x27;t :) > def foo > "evaluted and lost" > "return value" > end So, it would have been safer to assume Ruby like behaviour :) On Dec 4, 2:22 am, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi, > > On 4 Dez., 07:53, Mon Key <[EMAIL PROTECTED]> wrote

Re: (doc)strings after param in defn

2008-12-03 Thread Mon Key
=== (defn my-test [] "misplaced documentation string for my-test" (= my-test my-test)) (defn my-test [] "" (= my-test my-test)) On Dec 4, 1:23 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Dec 4, 2

Re: (doc)strings after param in defn

2008-12-03 Thread Mon Key
ram ;;; === user> my-test # ;;; === Here again the only difference is the placement of the (doc)string - which can't be discerned visually. On Dec 4, 12:57 am, Mon Key <[EMAIL PROTECTED]> wrote: > I'm sure I'm missing something >

Re: (doc)strings after param in defn

2008-12-03 Thread Mon Key
;; evaluating doc of my-test defn with doc string *before* param ;;; === user> (doc my-test) - user/my-test ([]) appropriately placed documentation string for my-test nil ;;; =========== On Dec 3, 11:58 pm, "Stephen C. Gilardi&qu

(doc)strings after param in defn

2008-12-03 Thread Mon Key
I apologize if this has been brought up before... But, where does the doc string on the `my-test' defn below reside. In case one evaluating (doc my-test returns the doc string. In case two (doc evaluates the string as nil). Is this value interned with the symbol and if so where and how do I ac

Re: quit

2008-12-02 Thread Mon Key
ure' and/or `exit-clojure' available as a tab-complete in addition to leaving open the shorter tokens `quit' and `exit' for future potential uses or User Code makes sense. s_P On Dec 2, 2:07 pm, "Cosmin Stejerean" <[EMAIL PROTECTED]> wrote: > On Sun, Nov 30,

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread Mon Key
;; you can evaluate: (defn myfirst [x] (mysecond x)) ;; then bind that to: (defn mysecond [x] (+ x 1)) user> (myfirst 1) => 2 Which winds up being more better once you let go of the CL assumptions about ns :) I'm finding that part difficult as well. On Dec 1, 10:47 pm, "[EMAIL PROTECTED]" <[EMAI

Re: undefined symbols (CL vs. Clojure)

2008-12-01 Thread Mon Key
;; you can evaluate: (defn myfirst [x] (mysecond x)) ;; then bind that to: (defn mysecond [x] (+ x 1)) user> (myfirst 1) => 2 Which winds up being more better once you let go of the CL assumptions about ns :) I'm finding that part difficult as well. On Dec 1, 10:47 pm, "[EMAIL PROTECTED]" <[EMAI

Re: quit

2008-11-30 Thread Mon Key
Maybe (quit-clojure) instead of (quit)? This would save vanilla `quit' just in case it's needed later/elsewhere. Might also be nice to have (exit-clojure). Ditto saving vanilla `exit' for other purposes When first configuring Clojure on both linux box and windows from the command line (e.g. pre-s