This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-08
Channels
- # adventofcode (9)
- # announcements (5)
- # babashka (3)
- # beginners (46)
- # calva (21)
- # cider (15)
- # clj-kondo (20)
- # cljs-dev (57)
- # cljsrn (10)
- # clojure (147)
- # clojure-dev (6)
- # clojure-europe (3)
- # clojure-france (2)
- # clojure-italy (8)
- # clojure-nl (18)
- # clojure-norway (5)
- # clojure-spec (16)
- # clojure-uk (63)
- # clojuredesign-podcast (7)
- # clojurescript (65)
- # clojurex (42)
- # cursive (12)
- # datomic (10)
- # fulcro (47)
- # graalvm (102)
- # graphql (2)
- # jobs (5)
- # joker (12)
- # off-topic (33)
- # pedestal (6)
- # re-frame (6)
- # reagent (8)
- # reitit (6)
- # remote-jobs (4)
- # rewrite-clj (10)
- # shadow-cljs (86)
- # sql (45)
- # testing (4)
- # tools-deps (43)
- # vim (8)
- # xtdb (3)
mainly how they handle aggregates of attributes. You only specify required/optional attributes at the context of the usage site
‘bags’ of attributes are now the primary way of mapping domain entities in spec2, they don’t talk about requirements
https://github.com/clojure/spec-alpha2/wiki/Differences-from-spec.alpha
hello, with spec1, I'm having issues to define a spec that is not loaded, I get Unable to resolve spec: ...
, consider this is file B
, the spec in question is defined by A
, but A
requires B
, so I can't load A
before loading B
(circular reference), with that constraint, is there a way to tell spec to ignore that the spec is not defined at that time?
most spec types delay resolving references so don't run into this, but there are a few that don't
for those that don't, you'll need to break that cycle somehow
thanks, I got rid of the cycle by moving those spec definitions to a new namespace (since I we can define things from other namespaces, so still have the same name, just defined in a different file)
What's the best way to restrict a string to a min/max length, so that the generator still works for it ?
I don't think there is a general way to do that without writing a generator
(and to do that, I would generate strings of length up to (max-min) and a string of length min, then concat)