This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-04
Channels
- # architecture (10)
- # bangalore-clj (2)
- # beginners (2)
- # clara (3)
- # cljs-dev (39)
- # clojars (2)
- # clojure (21)
- # clojure-art (2)
- # clojure-austin (6)
- # clojure-berlin (5)
- # clojure-gamedev (4)
- # clojure-russia (1)
- # clojure-spec (15)
- # clojure-uk (4)
- # clojurescript (4)
- # cursive (3)
- # datomic (1)
- # events (5)
- # flambo (6)
- # hoplon (55)
- # jobs (20)
- # lein-figwheel (2)
- # om (8)
- # onyx (1)
- # pedestal (4)
- # perun (3)
- # protorepl (2)
- # re-frame (8)
- # reagent (48)
- # slack-help (1)
- # specter (5)
- # yada (46)
FYI clojars is down due to a DDoS on linode http://status.clojars.org/ https://status.linode.com/incidents/8y3r2j12wbb0
any idea why this is taking a few seconds before exiting? https://gist.github.com/spacepluk/f20fc43fb702cf25d654e2fd0d86e058
@spacepluk you may have to call shutdown-agents
https://clojuredocs.org/clojure.core/future
hey guys, can you point me, where am I wrong.
(ns test-ns
(:require [clojure.spec :as s]
[clojure.spec.test :as stest]]))
(defn test-func [a]
(str a))
(s/def ::int-ret integer?)
(s/fdef test-func
:args (s/cat :a string?)
:ret ::int-ret)
(stest/instrument `test-func)
(test-func "test")
why this code doesn't throw an exception?I’m trying to do something like (map vector col (rest col))
in a transucer, it this even possible or do I have to do this before?
@andrewtropin: the :ret spec is only checked when using stest/check
@alexmiller Not very obvious behavior, but thanks a lot for explanation.
@nooga I don't think it can be built with map (but I just woke up and don't have access to a repl, so what do I know?), but I think it'd be straight forward to copy the map
source to a new function (or, at least the first 2 aritites), and modify the source for the [f coll] arity
In 1.9-alpha11, #:clojure.spec{:failure :no-fn}
evals to the un-ns’d keywords — that’s not what I was expecting (and not what I’m seeing out of reports from test failures)
@lvh what?
(keys #:clojure.spec{:failure :no-fn}) => (:clojure.spec/failure)
What function takes a shuffled vector and makes its numbers linear. [9 10 2 5 1] => [1 2 5 9 10]
?