KitApps / schema-refined

Clojure library to keep you away from bugs with precise schemas (refined types with runtime checks)
MIT License
67 stars 2 forks source link

Reimplement Struct and DispatchStruct using higher level Schema protocols #5

Closed kachayev closed 4 years ago

kachayev commented 6 years ago

The main reason for the change is to simplify implementation and do not rely on the internal mechanics of Schema library itself.

gsnewmark commented 6 years ago

@kachayev what to you mean by higher level Schema protocols? Implementing only schema.core/Schema and not relying on schema.spec.core/CoreSpec?

kachayev commented 6 years ago

@gsnewmark More about using variant-spec etc, like it's done here

gsnewmark commented 4 years ago

Closing the issue since it doesn't really make sense to switch the implementation. Detailed explanation is here https://github.com/KitApps/schema-refined/pull/22