This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-16
Channels
- # admin-announcements (2)
- # bangalore-clj (3)
- # beginners (15)
- # boot (303)
- # carry (18)
- # cider (7)
- # cljs-dev (222)
- # cljsrn (103)
- # clojure (196)
- # clojure-czech (2)
- # clojure-russia (69)
- # clojure-spec (21)
- # clojure-uk (48)
- # clojurescript (68)
- # cursive (18)
- # datomic (185)
- # events (1)
- # hoplon (2)
- # lambdaisland (1)
- # leiningen (1)
- # mount (10)
- # off-topic (1)
- # om (14)
- # onyx (154)
- # parinfer (1)
- # pedestal (3)
- # planck (5)
- # protorepl (9)
- # re-frame (17)
- # reagent (27)
- # ring (2)
- # specter (58)
- # test-check (1)
- # testing (7)
- # untangled (59)
- # yada (35)
Has anyone come across a spec for Hiccup markup? I’m just getting started and not sure I’m up to trying to figure out if & how to express it.
start from a tag, then attributes then how they relate to each other (and themselves). should be relatively easy
thanks Max but I’m in a hurry and not yet up to the nested spec stuff, if the answer is “no” that’s fine too
In clojure I can do (gen/generate (s/gen int?)) ;; => 1094
or (gen/generate (s/gen boolean?)) ;; => false
. In clojurescript I can do (gen/generate (s/gen int?)) ;; => -308
. But in clojurescript I can’t do (gen/generate (s/gen boolean?)) ;; => Error: Unable to construct gen at: [] for: function cljs$core$boolean_QMARK_(x){return (x === true) || (x === false);}].
What’s happening in clj vs cljs to make this difference?
Sounds like no one has written the generator for boolean?
in cljs yet.
Are you on the very latest cljs version? If so, file a JIRA ticket.
agreed, that should work
I see spec’ing of ns
has hit master snapshot now @alexmiller ? My build just broke 🙂 This is a good thing — turns out we had (import …)
in a test namespace instead of (:import …)
Oh, and a require
instead of :require
in another file...
that’s definitely the most common kind of failure I found in ns
in the wild
there are a number of popular libraries that currently fail with the new specs - I’ve filed PRs on all the ones I found and they’ve all been merged, but afaik most do not yet have new released versions
I’ll have some more guidance on some of this after we release an alpha
Wow, I’m running into more and more of those ns
bugs!
Well, this is why we always do multi-version testing against master and our current selected release version!
We had a missing :
in six files in all.
well I found instances in both Clojure and ClojureScript too so you’re in good company :)