Re: Is this resource only loaded once?

2015-08-14 Thread Thomas Goossens
t;) p) > > You can then access your parser with (parser), which will only slurp the > file once. (If it matters, there are alternatives that will not keep on > paying the atom update cost.) > > > > On 14 August 2015 at 10:59, Thomas Goossens > wrote: > >> When

Is this resource only loaded once?

2015-08-14 Thread Thomas Goossens
When a java class uses the compiled Test (gen-class) from test namespace. Everytime the static function -run is called, will parser be slurped again or only once ? (ns test (:gen-class :name Test :methods [ ^:static [run [] String])) (def parser (slurp "..

BeClojure beginners evening in Leuven - 5 November 2014

2014-09-20 Thread Thomas Goossens
lic to everyone*. Get your free tickets now! Click here <http://beclojure.org/2014/09/20/beginners-evening-november-5th-2014-leuven/> Please share and enjoy! Hope to see you there! Sincerely, Thomas Goossens Founder BeClojure -- You received this message because you are subscribed to the G

Re: [ANN] Compliment - a completion library you deserve

2013-08-10 Thread Thomas Goossens
I think I am going to love this! On Friday, August 9, 2013 6:19:40 PM UTC+2, Alexander Yakushev wrote: > > Dear community, > > I've just released the initial version of my clojure-complete fork, > Compliment. I decided to move it into a separate project after I rewrote > most of it. Here is proj

be.clojure.org: a humble question.

2013-03-11 Thread Thomas Goossens
s wonderful, if not then not heart-feelings :) Best regards, Thomas Goossens -- -- 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

First Belgian Clojure Meetup - March 2013

2013-03-03 Thread Thomas Goossens
I'm very pleased to announce the first ever #clojure #meetup group in #belgium For the latest information please visit http://lanyrd.com/2013/belgiumclj Follow us on twitter: @b

Belgium Clojure Meetup

2013-02-11 Thread Thomas Goossens
*With some fellow Belgian clojurians (Frederik De Bleser& Wim De Clerq) I’m planning to organise a Clojure meetup in Belgium while being inspired by the Amsterdam clojurians. So far no decisions have been made so don’t expect to find information like the planning, a d

Belgian Clojure base meetup?

2012-12-15 Thread Thomas Goossens
If you are from Belgium, Don't get too excited - yet - . I've been wondering about organising a small meetup somewhere next semester. (I peeked at our northern neighbours: http://www.meetup.com/The-Amsterdam-Clojure-Meetup-Group/events/88386392/) Though, I have no idea at all how many people he

Re: Decomplecting if

2012-12-09 Thread Thomas Goossens
; BTW I personally don't consider if complected. If reverse order is more > appropriate, I use if-not. > > On Sunday, December 9, 2012 12:02:54 AM UTC+1, Thomas Goossens wrote: >> >> One of the issues i had and still have with the if function is that >> because

Re: Decomplecting if

2012-12-09 Thread Thomas Goossens
Cool thanks! On Sunday, December 9, 2012 11:52:32 AM UTC+1, Alex Baranosky wrote: > > The version I just posted also has the benefit that it does not cause > multiple evaluations of its branches. > > On Sun, Dec 9, 2012 at 2:39 AM, Herwig Hochleitner > > > wrote: > >> 2012/12/9 Ben Wolfson > >>

Re: Decomplecting if

2012-12-09 Thread Thomas Goossens
es: > > > > user=> (iff true :else (println 1) :then (println 3)) > > 3 > > 1 > > nil > > user=> > > > > > > On Sat, Dec 8, 2012 at 3:02 PM, Thomas Goossens > > > wrote: > >> One of the issues i had and still have

Decomplecting if

2012-12-08 Thread Thomas Goossens
One of the issues i had and still have with the if function is that because it has ordered arguments, makes things more complex. For small functions this is no so much of a problem. (if test 1 0) But when things get larger, that extra complexity of order without explicit information can get s

Re: refer-clojure seems to have no effect.

2012-12-01 Thread Thomas Goossens
Solved it for me as well. Great :D On Thursday, November 22, 2012 4:03:38 PM UTC+1, Chas Emerick wrote: > > The user namespace is implicitly created with a blanket refer for > clojure.core; removing the mapping for e.g. '== in user would require using > ns-unmap. > > Just use a different namesp

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-20 Thread Thomas Goossens
now! But it will make it easier for me i guess. its just a thought On Tuesday, November 20, 2012 9:19:23 PM UTC+1, Brian Marick wrote: > > > On Nov 20, 2012, at 10:22 AM, Thomas Goossens wrote: > > > I think it is a bit dull that for every combination [type1 type2] you >

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-20 Thread Thomas Goossens
I think it is a bit dull that for every combination [type1 type2] you have to define an equivalent method for [type2 type1] Is there a way to address this problem? perhaps with sets? i need to think about this one :D On Monday, November 19, 2012 4:32:15 PM UTC+1, Brian Marick wrote: > > Here'

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-20 Thread Thomas Goossens
Thanks. Two months ago I bought that book. So I'll take a look at it ! -- 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 wit

Re: Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Thomas Goossens
Yes indeed. with multimethods you can doue multi-argument dispatch. But that means that for every possible collision. I have to specify a method? Would it be a good idea to introduce taxonomies here? On Monday, November 19, 2012 4:02:18 PM UTC+1, Stuart Sierra wrote: > > A long time ago I post

Idiomatic equivalent for double dispatch in clojure?

2012-11-19 Thread Thomas Goossens
In a java project last year we had to create a board game. A Board had "Piece" objects. Some pieces can share position. Some don't. The way i solved this in Java was using double dispatch. http://pastebin.com/brrRtqsS (I just extracted the methods out of their respective classes) But i think i