Re: Splitting Read into 2 steps?

2016-02-08 Thread Colin Fleming
Hi Terje, This is how the parsing works in Cursive. I have a classical lexer/parser split because IntelliJ forces me to do that. That said, I like it that way, and I believe it makes things more flexible. I've been able to make a couple of special-case parsers easily on top of the lexer - I'm abou

Re: defrecord == premature optimization?

2016-02-08 Thread Terje Dahl
To comment my own question some years and a bit of experience later: I would say that, just like with type-hinting: hold of as long as possible. Only when you find yourself adding to a map something like: {:type Person} is it time to consider using a Record in stead. And of course also if you wou

Re: Clojars Christmas outage - One month on

2016-02-08 Thread Laurens Van Houtven
Happy to help, and thank you for your continued hard work :) lvh -- 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 you

Re: [ANN] Leiningen 2.6.0

2016-02-08 Thread Jean Niklas L'orange
Hi all, Instead of creating a new thread for the 2.6.1 release of Leiningen, I'll just piggyback on this one. Leiningen 2.6.1 is a small release to fix an issue with 2.6.0. Some popular plugins (`lein midje`, `lein ring` to mention a few) broke because of a change in eval-in-project. This has now

Re: [ANN] clj-refactor.el and refactor-nrepl 2.0.0 is released

2016-02-08 Thread James Elliott
Thank you all! I have been watching progress on the Gitter chat and am very excited to be able to use all the great new features in this amazing package. The fact that I am now warned when the project needs to be re-evaluated, and that I can recover from issues with my protocols being redefined

Re: [ANN] Leiningen 2.6.0

2016-02-08 Thread James Elliott
Thanks, I’ve created a PR to update the version in homebrew (this time I checked to make sure nobody else had already done so first... *blush*) -James On Monday, February 8, 2016 at 12:06:32 PM UTC-6, Jean Niklas L'orange wrote: > > Hi all, > > Instead of creating a new thread for the 2.6.1 r

Undocumented reader macros?

2016-02-08 Thread James Elliott
I learned recently that you can tell the reader to evaluate a function at read time, if you want some potentially costly operation that you know will result in a constant value to be done just once, rather than every time the surrounding form is eval

conditional logic implemented as pattern-matching and restructuring in the signature of the function

2016-02-08 Thread Laws
Sean Johnson has a great video about pattern matching, where he suggests that any function that starts with a conditional should have the conditional removed and the conditional logic implemented as pattern-matching and restructuring in the signature of the function. But after some experimentat

Re: Announcing KR v1.4.2 :: RDF and SPARQL support using clojure data / interfaces

2016-02-08 Thread Fred Eisele
Are you still working with this? I have used your package to build an in-memory store. How to dump an in-memory jena knowledge base? Thanks On Thursday, June 14, 2012 at 10:20:03 PM UTC-5, K Livingston wrote: > > Hello everyone, I just wanted to announce the open-sourcing of a RDF and > SPARQL (a

Re: conditional logic implemented as pattern-matching and restructuring in the signature of the function

2016-02-08 Thread Stuart Sierra
Clojure's destructuring is not the same thing as the "pattern matching" found in some other functional languages. Pattern matching can do various conditional checks, destructuring cannot. Clojure's "defn" supports destructuring in the argument list. Full pattern matching is available in Clojure

Re: Undocumented reader macros?

2016-02-08 Thread Alex Miller
Rich has never committed to officially making this part of Clojure so it has been left as an undocumented feature. On Monday, February 8, 2016 at 12:33:44 PM UTC-6, James Elliott wrote: > > I learned recently that you > can tell the reader to evaluate

Re: Undocumented reader macros?

2016-02-08 Thread James Elliott
Oh, I see… interesting. What would it take to achieve commitment? :) I humbly submit that it feels qiote dissonant to stumble across something like this in a language that is attaining such wide adoption as Clojure is now. On Monday, February 8, 2016 at 8:53:45 PM UTC-6, Alex Miller wrote: > >

Re: Undocumented reader macros?

2016-02-08 Thread James Elliott
Quite dissonant, I mean, derp. On Monday, February 8, 2016 at 9:49:28 PM UTC-6, James Elliott wrote: > > Oh, I see… interesting. What would it take to achieve commitment? :) I > humbly submit that it feels qiote dissonant to stumble across something > like this in a language that is attaining su