This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-19
Channels
- # adventofcode (44)
- # announcements (2)
- # aws (9)
- # beginners (166)
- # braveandtrue (16)
- # calva (170)
- # cider (14)
- # cljdoc (9)
- # cljs-dev (4)
- # cljsrn (1)
- # clojars (1)
- # clojure (150)
- # clojure-dev (15)
- # clojure-europe (4)
- # clojure-india (3)
- # clojure-italy (93)
- # clojure-nl (18)
- # clojure-serbia (1)
- # clojure-spec (5)
- # clojure-uk (45)
- # clojurescript (54)
- # cursive (19)
- # data-science (8)
- # datomic (83)
- # emacs (6)
- # events (1)
- # hoplon (3)
- # hyperfiddle (3)
- # jobs (6)
- # jobs-discuss (1)
- # klipse (1)
- # lein-figwheel (6)
- # leiningen (15)
- # lumo (1)
- # nrepl (1)
- # pedestal (15)
- # re-frame (48)
- # reagent (4)
- # reitit (2)
- # remote-jobs (1)
- # rum (2)
- # shadow-cljs (111)
- # spacemacs (10)
- # sql (16)
- # testing (10)
- # tools-deps (5)
@alexandrkozyrev We do support spec (for example the new-fiddle button is validated with this spec)
(s/def :hyperfiddle.ide/new-fiddle (s/keys :req [:fiddle/ident]))
(s/def :fiddle/ident keyword?)
Hyperfiddle will automatically detect specs based on the namespaced keywords (attributes, fiddle-ident) and validate for you.
BUT you can't define specs from userland yet. We need to improve our compiler to support (ns (:require [clojure.spec.alpha :as s]))
and then you'll be able to register your own specs. Because spec is implemented with macros, it doesn't work unless you explicitly :require it.This is a high priority, I'm supposed to work on it next week
We also have the beginnings of a Hyperfiddle data model spec to validate the hyperfiddle editor and define it's business rules https://github.com/hyperfiddle/hyperfiddle/blob/350fe36e91056465d1bd339a74ca28ce06afaad5/src/hyperfiddle/fiddle.cljc