speced.def icon indicating copy to clipboard operation
speced.def copied to clipboard

ClojureScript compat - pt. 2 (minor)

Open vemv opened this issue 5 years ago • 1 comments

aka the pending items from https://github.com/nedap/utils.spec/pull/54 :

  • [x] cover consistent-tagging? and other similar fns
  • [x] Create a specific test for 37e9456 (instance-spec: also check protocols, for cljs)
  • [x] extract-specs-from-metadata can return :type-annotation js/Number (as opposed to 'number), as reflected in unit.nedap.utils.spec.impl.parsing
  • [ ] Ensure unit.nedap.utils.speced.defn.pre-post is in sync
  • [ ] Create assert for ;; in CLJS, arglists don't ever get a :tag.
  • [ ] Upgrade :pres to use check!
  • [ ] Maybe: if there's a primitive hint, turn :pres into :posts
    • Rationale: Note that boolean return values will be turned into Booleans, chars will become Characters, and numeric primitives will become Numbers unless they are immediately consumed by a method taking a primitive. https://clojure.org/reference/java_interop
  • [ ] README for cljs:
    • mention possible need for requiring Expound

vemv avatar May 27 '19 23:05 vemv

Satisfied the most important points for now.

vemv avatar Jul 26 '19 09:07 vemv