Re: [Video] Game development in Clojure (with play-clj)

2015-10-17 Thread William Swaney
Really enjoyed this. I've done a lot of LWJGL games in Java, but I'm going to try something in Clojure now. Thanks, Bill On Thursday, March 27, 2014 at 10:07:21 AM UTC-7, James Trunk wrote: > > Hi everyone, > > I thought some of you might be interested to watch my screencast about game > deve

Re: [Video] Game development in Clojure (with play-clj)

2015-10-17 Thread amirteymuri
Dear James, is-pressed? can not be resolved for me. Is this a version matter? Is there still a is-pressed? function? Greetings Am Donnerstag, 27. März 2014 18:07:21 UTC+1 schrieb James Trunk: > > Hi everyone, > > I thought some of you might be interested to watch my screencast about game > devel

Re: ANN: ClojureScript 1.7.145

2015-10-17 Thread Tony Tam
I believe something broke in :modules Ran your example http://swannodette.github.io/2015/02/23/hello-google-closure-modules/ with .145 and got java.lang.NullPointerException at com.google.javascript.jscomp.JSModule.sortInputsByDeps(JSModule.java:263) at cljs.closure$optimize_m

Re: deprecation warnings?

2015-10-17 Thread William la Forge
Overkill for me right now. I need to delete the deprecated functions in the subsequent release anyway so this is a short-lived issue, this time at least. Plus, I suspect the aatree library is not yet in heavy use. (But I can dream, can't I?) I had looked at the defprecated project but it got mixed

Re: deprecation warnings?

2015-10-17 Thread Brian Marick
William la Forge wrote: Going forward, I'd like to deprecate some functions and have a warning displayed on first use. So I've done this: I use defprecate https://github.com/alexander-yakushev/defprecated -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Newbie Question: Why is "reduced?" used in the reductions function?

2015-10-17 Thread Alex Eberts
Ah, that makes total sense. Thanks for the assistance! best, Alex On Saturday, October 17, 2015 at 7:35:00 AM UTC-4, Nicola Mometto wrote: > > > The `reduced?` check is there in case somebody returns a `reduced` as > acc value from the reducing function, as a way to terminate the > reduction ea

Re: Newbie Question: Why is "reduced?" used in the reductions function?

2015-10-17 Thread Nicola Mometto
The `reduced?` check is there in case somebody returns a `reduced` as acc value from the reducing function, as a way to terminate the reduction early: user=> (reductions (fn [_ x] (if (= 10 x) (reduced x) x)) (range)) (0 1 2 3 4 5 6 7 8 9 10) deref is the way to retrieve the value of a reduced o

Newbie Question: Why is "reduced?" used in the reductions function?

2015-10-17 Thread Alex Eberts
Hi All, Could someone please explain why reduced? is being used in the reductions function (below)? From what I understand reduced? checks if there has been a call to reduced and I don't see where that might be happening. Also, why is the deref macro being used with init? thanks, Alex (defn