Re: Prefix tree creation in clojure

2012-01-02 Thread Cedric Greevey
On Mon, Jan 2, 2012 at 5:28 PM, Stephen Compall wrote: > On Sun, 2012-01-01 at 23:16 -0500, Cedric Greevey wrote: >> And that will obviously be chock-full of internals changes and >> miscellaneous tweaks and not just the user-visible feature >> changes/additions, aimed more at developers of Clojur

Re: Prefix tree creation in clojure

2012-01-02 Thread Stephen Compall
On Sun, 2012-01-01 at 23:16 -0500, Cedric Greevey wrote: > And that will obviously be chock-full of internals changes and > miscellaneous tweaks and not just the user-visible feature > changes/additions, aimed more at developers of Clojure itself than at > developers using Clojure to make other thi

Re: Prefix tree creation in clojure

2012-01-01 Thread Cedric Greevey
On Sun, Jan 1, 2012 at 11:09 PM, Cedric Greevey wrote: > On Sun, Jan 1, 2012 at 10:31 PM, Stephen Compall > wrote: >> On Sun, 2012-01-01 at 22:10 -0500, Cedric Greevey wrote: >>> Odd that this isn't named not-empty? with a ? character. >> >> Not at all; it's not a predicate.  See also `every?' ve

Re: Prefix tree creation in clojure

2012-01-01 Thread Cedric Greevey
On Sun, Jan 1, 2012 at 10:31 PM, Stephen Compall wrote: > On Sun, 2012-01-01 at 22:10 -0500, Cedric Greevey wrote: >> Odd that this isn't named not-empty? with a ? character. > > Not at all; it's not a predicate.  See also `every?' versus `some'. It's useful as an if or cond clause; that to me sa

Re: Prefix tree creation in clojure

2012-01-01 Thread Stephen Compall
On Sun, 2012-01-01 at 22:10 -0500, Cedric Greevey wrote: > Odd that this isn't named not-empty? with a ? character. Not at all; it's not a predicate. See also `every?' versus `some'. > Where are these documented? Better yet, all the differences from 1.2 > in 1.3? There's one frequently-reference

Re: Prefix tree creation in clojure

2012-01-01 Thread Cedric Greevey
On Sun, Jan 1, 2012 at 5:55 PM, Stephen Compall wrote: > On Fri, 2011-12-30 at 15:21 -0800, rahulpilani wrote: >>   1: (ns prefix-tree) > > While this is just a sample, namespaces without at least one `.' are > discouraged.  I favor the Java convention (prefix with backwards > Internet domain that

Re: Prefix tree creation in clojure

2012-01-01 Thread Stephen Compall
On Fri, 2011-12-30 at 15:21 -0800, rahulpilani wrote: > https://gist.github.com/1541958 > > I would appreciate any pointers on style or if I could implement it > any better. Here are some style pointers on 74487e9, though they may be more specific than you were looking for. > 1: (ns prefix-tre

Prefix tree creation in clojure

2012-01-01 Thread rahulpilani
I am relatively new to clojure and still trying to learn my way around. In my day job, my primary language is Java, so breaking the imperative and mutable habit was kind of tough for me. To get my feet wet, I wrote a small set of functions to implement a prefix tree. It's larger than something I f