Hello everybody.
I wanted to announce the second release of suricatta, a high level sql
toolkit for clojure (backed by fantastic jooq library).
Main changes/improvements:
- Improved connection creation.
- Added support for custom type extensions (like postgresql json types)
- Add ddl functions t
I've just released cljfmt 0.1.0, a code formatting library and Leiningen
plugin for Clojure.
https://github.com/weavejester/cljfmt
The library is useful for ensuring that the formatting is correct after
code transformations via tools like rewrite-clj.
The plugin is useful for ensuring that pull
On 17 January 2015 at 14:02, James Reeves wrote:
>
> If you spot a bug, please open an issue or pull request for it. Pull
> requests should include tests to prevent disclaimers.
>
By which I of course mean "regressions" :)
I just need write a lein-anti-typo plugin now...
- James
--
You receiv
Hi,
I am trying to create record definitions dynamically during runtime. What I
would like to do is something like this:
(defn mk-rec [record-name namespace arg-list]
(eval '(do (ns namespace)
(defrecord record-name arg-list
And then call it like this:
(mk-rec "A" "ns" [a b c])
> On Jan 17, 2015, at 12:27 PM, Sven Richter wrote:
>
> I am trying to create record definitions dynamically during runtime. What I
> would like to do is something like this:
>
> (defn mk-rec [record-name namespace arg-list]
> (eval '(do (ns namespace)
>(defrecord record-name arg
The last installment in a blog series covering developing and testing a
Compojure web app. This wraps it up by address deployment.
http://www.jarrodctaylor.com/posts/Compojure-Address-Book-Part-6/
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
Did you find something really wrong with defstruct? Occasions when the
basis fields are not known to the programmer seem better met by defstruct
than defrecord. And defstruct has *not* been deprecated in the API
documentation. The comment "Note: Most uses of StructMaps would now be
better se
On 17 January 2015 at 17:27, Sven Richter wrote:
>
> I am trying to create record definitions dynamically during runtime.
>
To what end? The right answer depends very much on your end goal.
- James
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
The reason you can't just call `(mk-rec "A" "ns" [a b c])` is that your
`mk-rec` is a function, and `a`, `b`, and `c` are undefined. To have them
interpretted as symbols, you'd either have to explicitly use `['a 'b 'c]`,
or write `mk-rec` as a macro (as Lee points towards).
I was able to get a
> On Jan 17, 2015, at 6:04 PM, Matching Socks wrote:
>
> Did you find something really wrong with defstruct? Occasions when the basis
> fields are not known to the programmer seem better met by defstruct than
> defrecord. And defstruct has not been deprecated in the API documentation.
> Th
On Jan 17, 2015, at 3:04 PM, Matching Socks wrote:
> And defstruct has not been deprecated in the API documentation.
Technically true but when you see comments like these out there it’s reasonable
to assume that structs should be avoided:
"We intentionally omit ... struct-maps, which are deprec
11 matches
Mail list logo