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

SCHEMA: Make expression tests more manageable #1629

Merged

Conversation

effigies
Copy link
Collaborator

We started with a pretty ambitious expression language, thinking it would not be hard to implement in any language. It turns out that it would require a proper parser, which would probably be an intolerable slowdown to the javascript implementation. Making null "falsey" is enough, and we don't use much of the fall-through behavior we originally designed.

A Python implementation will be able to do some type-checking on the expressions we actually have to make sure they stay in the bounds the JS implementation can handle.

@effigies
Copy link
Collaborator Author

cc @rwblair

@effigies effigies force-pushed the schema/update-expression-tests branch from 7f85762 to ff19470 Compare October 19, 2023 19:23
@effigies effigies added schema Issues related to the YAML schema representation of the specification. Patch version release. exclude-from-changelog This item will not feature in the automatically generated changelog labels Oct 19, 2023
@rwblair
Copy link
Member

rwblair commented Oct 19, 2023

Do we know if anyone else uses these expression checks?

@effigies
Copy link
Collaborator Author

No, I don't think anybody does.

@effigies effigies merged commit 7c33569 into bids-standard:master Oct 19, 2023
17 checks passed
@effigies effigies deleted the schema/update-expression-tests branch October 23, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-from-changelog This item will not feature in the automatically generated changelog schema Issues related to the YAML schema representation of the specification. Patch version release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants