Results 166 comments of Ben Sless

I have recently had this client recommended to me as a SSE client, it requires only java >= 11 https://github.com/cjohansen/clj-event-source

Hi all, what's the status of this PR? We have some interest in it as well. If you'd like a few more eyes to look it over we can dedicate...

> * Charset name here is quite strange? It doesn't refer to charset really. It's a set of characters, but I'm not a fan of the name either, if you...

> Perhaps just `:characters` (or `:chars`)? I think characters is good, I'll make the appropriate change

Not sure why mix the constructors here: ``` (require '[criterium.core :as cc]) (require '[malli.core :as m]) (def v0 (m/validator [:string {:charset :digit}])) (def v1 (m/validator [:string {:pattern #"^\d*$"}])) (cc/quick-bench (v0...

The use case for this feature is twofold: - regular expressions are slower - expressive power - being able to say "a string is alphanumeric" is more readable than `^[A-Za-z0-9]*$`...

Doing some more thinking about this, how about two properties, `include-chars` and `exclude-chars`?

What do you think about a datalog-like syntax for describing the constraints? Something like a simplified `:where` clause It's serializable and simple to compile

I considered two notations, one as property and one as a standalone schema: ```clojure [:map {:where '[[?e :x ?x] [?e :y ?y] [(< ?x ?y)]]} [:x int?] [:y int?]] [:and...