https://github.com/usernolan/fm
Concise syntax for embedding validation within functions
https://github.com/usernolan/fm
clojure clojurescript generative-specification property-testing
Last synced: 4 months ago
JSON representation
Concise syntax for embedding validation within functions
- Host: GitHub
- URL: https://github.com/usernolan/fm
- Owner: usernolan
- Created: 2019-09-08T19:20:51.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T17:01:57.000Z (almost 3 years ago)
- Last Synced: 2025-06-03T02:45:51.864Z (8 months ago)
- Topics: clojure, clojurescript, generative-specification, property-testing
- Language: Clojure
- Homepage:
- Size: 347 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fm
```clojure
(s/def ::a int?)
(s/def ::b int?)
(fm/defn add [::a ::b]
(+ a b))
```
#
`fm` provides syntax for specifying runtime invariants via
[`clojure.spec`](https://github.com/clojure/spec.alpha/)