This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-26
Channels
- # adventofcode (2)
- # babashka (17)
- # babashka-sci-dev (4)
- # beginners (8)
- # chlorine-clover (4)
- # clj-kondo (18)
- # clj-on-windows (1)
- # clojure (11)
- # clojure-india (12)
- # clojure-nl (1)
- # clojure-spec (9)
- # clojure-uk (3)
- # clojurescript (9)
- # conjure (3)
- # events (1)
- # graalvm (6)
- # lsp (6)
- # meander (4)
- # music (2)
- # off-topic (10)
- # other-languages (9)
- # re-frame (2)
- # releases (1)
- # reveal (8)
- # sci (1)
- # tools-deps (6)
@alexmiller greetings! https://github.com/clojure/core.specs.alpha/commit/938c0a9725a284095baa2387dff1a29c3f1e26ac I wonder, why not just do?
(s/or ::local-name ::local-name
::seq-binding-form ::seq-binding-form
::map-binding-form ::map-binding-form
Had to port some code leveraging core.specs from 1.10 to 1.9 due to these.
I get the "alpha" status and all.
But the question above is a general one.
I'd assume dispatch keywords are as part of a spec as the spec name itself, since it is not wild to assume there would be a bunch of code dependent on conformed values, eventually. Why not use the same qualified keys where available (sans e.g. inline specs)? Is there any specific reason or unobvious consequence?
Thanks!We wanted to make path names better as they show up in error messages
Generally we don't use qualified names for paths as they are contextual in the parent spec
I can see how it often applies to regex
specs.
For most or
specs I found ::
way more suitable. Sans the ugly unreadable path, ofc.
I would like to spec a coll-of maps that is sorted on a specific keyword, is there a simple way to do this?