Tommi Reiman

Results 437 comments of Tommi Reiman

Having a single-sweep might not be faster unless it's implemented so that the generated methods remain small, e.g. using some trampoline / loop. JIT compiler will compile small methods into...

I believe both the call depth and the (bytecode) size matter how/if JIT works for the code. Having three (middleware-)function chains of depth 6 vs one of depth 18 perform...

You could just just add the mutex-rules with a `:fn` schema, composed with `:and`. With a tiny helper, something like this: ```clj (defn exclusive-keys [keys] [:fn {:error/message (str "the following...

another option is to write real new `Schema` object for the exclusive keys: ```clj (def Exclusive (m/-simple-schema (fn [_ [keys]] {:type 'Exclusive :min 1 :max 1 :pred (fn [m] (not...

Would the metadata be written into properties so this would hold?: ```clj (m/form ^:closed [:map ^:optional [:y int?]]) ; => [:map {:closed true} [:y {:optional true} int?]] ``` the implementation...

It depends. If you generate a web-form out of the two, the order matter and the forms would look different. For validators, generators etc, they behave the same way. But,...

I think the default could be reverted to being alphanumeric. A generic way would be good, e.g: ```clj [:string {:gen/options {:type :char}}] [:string {:gen/options {:type :char-alphanumeric}}] ``` ... we could...

on a second look: ```clj [:string {:gen/char :char}] [:string {:gen/char :char-alphanumeric}] ``` doesn't look bad either.

#552 merged, so the default is now alphanumeric.