-
Notifications
You must be signed in to change notification settings - Fork 23
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
Value refactorings - split into separate files #2978
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dateFormat?: VString; // can be set on dates | ||
hidden?: VBool; | ||
notebook?: VBool; // can be set on arrays | ||
exportData?: VDict; // should be { sourceId: String, path: List(String) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe when we eventually have Structs, we could use them here. Not sure though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I mentioned this idea in description
Seems like a good direction, though I agree the lack of type safety is annoying. |
As we discussed in https://discord.com/channels/1130609991993274510/1133551706370752582/1196297279359959150, I had to convert
ValueTagsType
from plain values toValue
objects, because of circular imports issue.Because of this, some things became less type-safe (
startOpenState
in particular). I'm not very happy about it, but I hope that we will clean this up after custom structs — then we could have some common infra for validating typed Squiggle dicts.