-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add an API to declare the standard "prelude" types to a schema type system #208
Comments
Bonus points if this also makes initializing a typesystem easier. Right now it's:
Would be nice if it was instead just something like:
|
The new
I'd slightly prefer just |
Yeah, we should have something for this. I didn't form strong opinions on how exactly it should be written (because I still sort of wish we could get away from these golang constructors at all, but, here we are for a while yet, it seems). A list of prelude types that one can unroll into the varargs for MustTypeSystem would seem good, I guess, if we can get away with something that light. Or, I've also now a couple of times had the wish for a constructor method for TypeSystem that takes both an existing TypeSystem and a list of new types and just adds them together to form a new one. (This mostly has come up in tests, and I'm not sure the desire is very correct, on second thought. Just a thought.) |
go-ipld-prime/schema/dmt/compile.go Lines 15 to 33 in ac5b5fd
And I think we're in agreement that the vast majority of users should use schemas by using For that reason, I think we can close this issue. Note that the prelude doesn't include |
See #207 (comment).
The text was updated successfully, but these errors were encountered: