Re: A syntax feature request: splitting literal strings

2009-04-04 Thread Laurent PETIT
Hi, 2009/4/4 samppi rbysam...@gmail.com I wish I could do this: (code... Long error string that doesn't fit within 80 characters but is descriptive, \ which is good, right? ...more code...) (The string above would say, Long error string that doesn't fit within 80 characters

Re: A syntax feature request: splitting literal strings

2009-04-04 Thread samppi
Ah, I posted the same code twice. I meant to show the more readable versions. Using backslashes: (...lots of indented code (if (= m :auto-detect) (if (= detected-indent n)

Re: Ironicly Maven2 is the lightest I could come up with

2009-04-04 Thread mikel
On Apr 2, 12:30 pm, dysinger dysin...@gmail.com wrote: This approach won't get you very far IMHO working on lots of projects.  At some point you will have conflicts on which library version you need. It's trivial to switch sets of libraries at SLIME startup time by editing one line of the

Bloggin' 'bout Dataflow

2009-04-04 Thread Jeffrey Straszheim
I've started a series of blog posts about the use and implementation of my Cells like Dataflow library that currently lives in contrib. I'd love to get some traffic to it. Even more, since I'm looking for a job now, I wouldn't mind some links to it so maybe it will show up when potential

Re: Bloggin' 'bout Dataflow

2009-04-04 Thread Jeffrey Straszheim
Yes! I did forget to provide a link. http://jstraszheim.livejournal.com/ On Apr 4, 1:23 pm, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: I've started a series of blog posts about the use and implementation of my Cells like Dataflow library that currently lives in contrib.  I'd love

Re: A clojure server

2009-04-04 Thread christ...@mvonessen.de
I wonder if it is possible somehow to reload clojure.core. The main   reason would be to reset the global hierarchy for multimethods. I'm not sure I undestand what you want to do, but couldn't you just do (in-ns 'clojure.core) (def #^{:private true} global-hierarchy (make-hierarchy))

Re: A syntax feature request: splitting literal strings

2009-04-04 Thread samppi
Of course–it's good that Clojure does that. :) Along with the fact that it's intuitive, docstrings are in a standardized style to print nicely with (doc): (defn foo First line is wrapping around and is indented by two spaces. But this is only because (doc) allows for this, indenting the

Re: Every function is a thread in Clojure?

2009-04-04 Thread Curran Kelleher
Indeed! this is a perfect discussion - great clarifications to a worthy question On Apr 4, 9:14 am, Rayne disciplera...@gmail.com wrote: Never be sorry about being curious. On Apr 3, 10:06 am, Berlin Brown berlin.br...@gmail.com wrote: On Apr 3, 10:09 am, Stuart Halloway

Re: A clojure server

2009-04-04 Thread Konrad Hinsen
On 04.04.2009, at 19:45, christ...@mvonessen.de wrote: I'm not sure I undestand what you want to do, but couldn't you just do (in-ns 'clojure.core) (def #^{:private true} global-hierarchy (make-hierarchy)) and be happy? That should indeed work... I'll try! I tried to install your

Re: A clojure server

2009-04-04 Thread bOR_
Has anyone tried to combine clojure-server and vimclojure yet? I'm still hopping IDEs to see which system I like best, and vim was next on the list :). On Apr 4, 9:56 pm, Konrad Hinsen konrad.hin...@laposte.net wrote: On 04.04.2009, at 19:45, christ...@mvonessen.de wrote: I'm not sure I

Re: A clojure server

2009-04-04 Thread Meikel Brandmeyer
Hi, Am 04.04.2009 um 23:41 schrieb bOR_: Has anyone tried to combine clojure-server and vimclojure yet? I'm still hopping IDEs to see which system I like best, and vim was next on the list :). I'm haven't tried, yet. But the gensymed namespace certainly will get in the way, since VimClojure

[ANN] clojuredev 0.0.30 released

2009-04-04 Thread Laurent PETIT
New release, with a lot of changes! I would particularly like to thank Stephan Mühlstrasser for his contributions ! The clojure symbols omni-completion feature was also quickly made available thanks to Meikel Brandmeyer's help and code :-) IMPORTANT NOTE: the layouts of the plugins that host

Re: Java interoperability and Clojure

2009-04-04 Thread kyle smith
I wrote some functions to streamline reflection here. http://groups.google.com/group/clojure/browse_thread/thread/ea23cd11b7bd8999/f32795d9a79eeeb9?lnk=gstq=accessing+private#f32795d9a79eeeb9 --~--~-~--~~~---~--~~ You received this message because you are

Re: A syntax feature request: splitting literal strings

2009-04-04 Thread Stuart Sierra
This can be macro-ized: (defmacro bigstr [ strings] Concatenates strings at compile time. (apply str strings)) user (macroexpand-1 '(bigstr This is a really long string that I just felt like using in my program.)) This is a

Re: proposed new contrib: java-utils

2009-04-04 Thread Stuart Sierra
On Apr 3, 10:17 am, Stuart Halloway stuart.hallo...@gmail.com wrote: (3) coercions for Java's irritating types: File/String, ... clojure.contrib.duck-streams has file but not the others -the other Stuart --~--~-~--~~~---~--~~ You received this message because

Nested loops

2009-04-04 Thread David Sletten
I'm working on a spell checker that attempts to suggest corrections from a given dictionary. One of the heuristics is to see if inserting a character at each point in the given string results in a recognized word. So I have an outer loop that moves across each position in the string and

Re: retrieving argument :tag metadata

2009-04-04 Thread Carsten Saager
Perhaps I am too stupid, but I can't get it too work to define a function/macro that returns me the arglists of a function I pass to it. The ^#' seems to work only on the symbol in the script - how do I wrap this? Concrete problem: I have some functions that users provide and they are supposed

Re: retrieving argument :tag metadata

2009-04-04 Thread Stuart Sierra
Maybe this is what you're looking for: user (meta (resolve 'slurp)) {:ns #Namespace clojure.core, :name slurp, :file core.clj, :line 3004, :arglists ([f]), :doc Reads the file named by f into a string and returns it.} user (:arglists (meta (resolve 'slurp))) ([f]) user (first (first (:arglists

Re: Nested loops

2009-04-04 Thread Mark Triggs
Hi David, Quite a few times when I've felt the need for this sort of thing I've found that laziness comes to the rescue. Would something like this sort of approach work for you? (defn possibilities [word pos] All variations of `word' with letters from 'a' to 'z' inserted at `pos' (let

Re: Nested loops

2009-04-04 Thread jim
I didn't take time to read your post in detail because I'm on my way to bed and my brain has already checked out. However, as I've gotten better at Clojure and functional programming, I find I use loops less and less. I just got done putting the finishing touches on a package to analyse stock

Re: Nested loops

2009-04-04 Thread David Sletten
On Apr 4, 2009, at 6:18 PM, Mark Triggs wrote: Hi David, Quite a few times when I've felt the need for this sort of thing I've found that laziness comes to the rescue. Would something like this sort of approach work for you? (defn possibilities [word pos] All variations of `word'

Re: A syntax feature request: splitting literal strings

2009-04-04 Thread samppi
Great! The code that uses it would be kind of bulkier than I wanted, but it's okay. I can at least make my code much more readable without hurting its runtime performance. Thanks a lot. On Apr 4, 4:16 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: This can be macro-ized: (defmacro