Re: Macro usage within Clojure community and naming functions which perform actions under certain conditions

2016-05-04 Thread Fluid Dynamics
What about: safe-cell? (as described) reveal-safe-cells (as existing) (defn reveal-safe-cells-if-safe-cell [gs] (if (safe-cell? gs) (reveal-safe-cells gs) gs)) and elsewhere (-> gs ... ... (reveal-safe-cells-if-safe-cell) ... ...) -- You received this message because you

Re: Macro usage within Clojure community and naming functions which perform actions under certain conditions

2016-04-26 Thread Jason Felice
I wrote packthread to avoid needing threading counterparts of a bunch of control forms - it rewrites threading through control forms. https://github.com/maitria/packthread It doesn't (yet) solve when you need the threaded value in the middle of a threading form. I've had some thoughts about

Re: Macro usage within Clojure community and naming functions which perform actions under certain conditions

2016-04-26 Thread Ray Miller
On 25 April 2016 at 21:03, Rafał Cieślak wrote: > Hi, > > I'm writing a turn-based game and one of the biggest functions is the one > which handles player moves. It receives the current game state (a map) and > the index of the cell that the player clicked on (an integer). >

Macro usage within Clojure community and naming functions which perform actions under certain conditions

2016-04-25 Thread Rafał Cieślak
Hi, I'm writing a turn-based game and one of the biggest functions is the one which handles player moves. It receives the current game state (a map) and the index of the cell that the player clicked on (an integer). It has to make a couple of decisions based on the game state. So far I just