I followed steps described by Denis Fuenzalida in my Windows 7 machine and
I can completely reproduce the results.
So, in Windows 7, the solution is the .clj files must be saved with UTF-8
without BOM encoding.
On Sunday, 12 July 2015 08:57:59 UTC+7, Denis Fuenzalida wrote:
I was able to
First of all, I'm pretty sure compojure will let you do the thing, because
it's less macro-heavy than what you're using.
But to answer the general question, this is a fundamental problem with
macros. Once you're making heavy use of macros you start having to write
more macros in order to compose
Simple macros are often sugar around functions. In Pedestal, defroutes
appears to be defined as:
(defmacro defroutes [name route-spec]
`(def ~name (expand-routes (quote ~route-spec
So you could use expand-routes and syntax quotes instead.
- James
On 12 July 2015 at 20:40, Lynn Dylan
Thanks to Alex Miller, http://clojure.org/cheatsheet is now updated to the
latest version of the cheat sheet, with links to ClojureDocs.org.
The Download other versions with tooltips link near the top of that page
links to here, as usual:
http://jafingerhut.github.io
where you can find the
You may have already discounted Java versions, but just in case ...
http://www.javacodegeeks.com/2013/10/java-object-to-object-mapper.html
Craig
On Monday, July 13, 2015 at 3:53:19 AM UTC+10, Jules wrote:
Guys,
I have an external and an internal data representation.
I need to define
Colin Fleming wrote:
I just saw this the other day, in particular the better docstrings are
great. See also Andy Fingerhut's Thalia
https://github.com/jafingerhut/thalia project. I'm planning to provide
doc from both of these in Cursive soon.
That does look nice. Wish I'd known of it
Is there a library out there for deprecating functions? I'm looking for
something that prints a deprecation message, but only once, allows
deprecation messages to be turned off (probably from environment
variable), and perhaps allows something other than `println` to be
plugged in as the
cljs.info have also done a heap of work on improving docstrings too.
On Mon, 13 Jul 2015 at 9:15 AM Brian Marick mar...@exampler.com wrote:
Colin Fleming wrote:
I just saw this the other day, in particular the better docstrings are
great. See also Andy Fingerhut's Thalia
Here is what I'm trying to do:
---
;; route defined outside of the defroutes macro
(def foo-route [/ {:get foo-handler}])
(defroutes routes
[[[/
;; I'm trying to do this, but it does NOT work
[/foo foo-route]
;; this does work
[/bar [/ {:get bar-handler}])
---
Hi,
IIRC Windows requires UTF-8 encoded files to have the BOM (Byte Order Mark).
Can you verify that your file has the BOM?
Regards,
BG
On Thu, Jul 9, 2015 at 8:03 AM, Alex Woods linpc...@gmail.com wrote:
clojure don't support .clj source code file by utf-8.
it's ok when the .clj source code
Am Sonntag, 12. Juli 2015, 16:17:50 schrieb Brian Marick:
Is there a library out there for deprecating functions? I'm looking for
something that prints a deprecation message, but only once, allows
deprecation messages to be turned off (probably from environment
variable), and perhaps allows
Eastwood warns about deprecated Clojure functions and Java methods (among
other things).
https://github.com/jonase/eastwood#deprecations
Andy
On Sun, Jul 12, 2015 at 2:17 PM, Brian Marick mar...@exampler.com wrote:
Is there a library out there for deprecating functions? I'm looking for
On Mac OS X (Yosemite) and Linux (Ubuntu), this code works well (I'm using
en_US.UTF-8 as
charset and encoding for my system).
I suspect that the OS (Windows) or its configuration is the source of the
problem.
On Sunday, July 12, 2015 at 10:57:59 AM UTC+9, Denis Fuenzalida wrote:
I was able
Windows a problem ?
N, impossible :)))
Luc P.
Sent from my iPhone
On Jul 12, 2015, at 19:39, Sungjin Chun chu...@gmail.com wrote:
On Mac OS X (Yosemite) and Linux (Ubuntu), this code works well (I'm using
en_US.UTF-8 as
charset and encoding for my system).
I suspect that the OS
Of course not. My files do not have BOM. So the problem lies in the
BOM thingy?
On Mon, Jul 13, 2015 at 10:07 AM Baishampayan Ghose b.gh...@gmail.com
wrote:
Hi,
IIRC Windows requires UTF-8 encoded files to have the BOM (Byte Order
Mark).
Can you verify that your file has the BOM?
Regards,
I do of course mean (reduce merge {} (event-store/load ar-id)) or (apply merge
(event-store/load ar-id)) :)
On 12 Jul 2015, at 16:21, Colin Yates colin.ya...@gmail.com wrote:
My latest project uses a CQRS and event sourcing design and the power it
gives, coupled with Clojure is just
Guys,
I have an external and an internal data representation.
I need to define transforms both ways.
Both models are structured.
A pair of in/out functions might look like:
(fn [{{b :b c c:} :a}] [b [c]])
(fn [[b [c]] {:a {:b b :c c}})
I just typed that OTTOMH so please forgive any
Johanna,
I noticed you mentioned CQRS. In my work, we use CQRS heavily, specifically
the Axon framework for Java (utilizing Spring and Hibernate). I got into
Clojure through watching Rich Hickey's talks and figured that any language
that he wrote had to be good.
It's remarkable to me how
My latest project uses a CQRS and event sourcing design and the power it gives,
coupled with Clojure is just fantastic. Hydrating an object becomes (merge {}
(event-store/load ar-id)) - just fantastic.
I too find a lot of sympathy between CQRS, event sourcing, FRP and Clojure
which I keep
I just saw this the other day, in particular the better docstrings are
great. See also Andy Fingerhut's Thalia
https://github.com/jafingerhut/thalia project. I'm planning to provide
doc from both of these in Cursive soon.
On 12 July 2015 at 01:34, Brian Marick mar...@exampler.com wrote:
20 matches
Mail list logo