Skip to content
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

Merged
merged 4 commits into from
Jan 18, 2024
Merged

Conversation

berekuk
Copy link
Collaborator

@berekuk berekuk commented Jan 18, 2024

As we discussed in https://discord.com/channels/1130609991993274510/1133551706370752582/1196297279359959150, I had to convert ValueTagsType from plain values to Value 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.

@berekuk berekuk requested a review from OAGr as a code owner January 18, 2024 18:18
Copy link

changeset-bot bot commented Jan 18, 2024

⚠️ No Changeset found

Latest commit: 7fffe62

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Jan 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Jan 18, 2024 6:18pm
quri-ui ✅ Ready (Inspect) Visit Preview Jan 18, 2024 6:18pm
squiggle-components ✅ Ready (Inspect) Visit Preview Jan 18, 2024 6:18pm
squiggle-website ✅ Ready (Inspect) Visit Preview Jan 18, 2024 6:18pm

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) }
Copy link
Contributor

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.

Copy link
Collaborator Author

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

@OAGr
Copy link
Contributor

OAGr commented Jan 18, 2024

Seems like a good direction, though I agree the lack of type safety is annoying.

@OAGr OAGr merged commit 27d25d2 into main Jan 18, 2024
6 checks passed
@OAGr OAGr deleted the value-refactorings branch January 18, 2024 19:06
@berekuk berekuk mentioned this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants