Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 tests for
$ion_literal
. #97Add tests for
$ion_literal
. #97Changes from 2 commits
db10310
c1fa96f
fc6d4dc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Any IVM-like symbol with an annotation is already always a symbol, and doesn't need an annotation, right?
Also, how does this affect text Ion—specifically, a quoted, unannotated IVM is actually a no-op. Does resolving
$ion_literal
happen before or after determining whether it's a no-op?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.
True, but that doesn't help when you want to represent the unannotated symbol with text "$ion_1_0".
They would have to happen at the same phase. That no-op behavior of (eg)
'$ion_1_0'
means that either:$ion_literal
annotation).I think (1) would be easiest to implement but surprising in terms of round-tripping. (2) is obnoxious. So I'm inclined to go with (2) above as a clearer specification of the 1.0 handling.
For 1.1 I currently think we should dump the no-op behavior of such quoted forms, making them normal symbols; let the unquoted form be "escaped" via
$ion_literal
, and do the same thing for local symtabs$ion_literal::$ion_symbol_table::{
. The outcome is that Ion 1.1 allows everything in the data model to be written at top level as user data.It wouldn't surprise me if Ion 1.0 implementations are full of bugs in their handling of this space. We didn't think it through carefully enough, and then back-filled specification years later to try to match the observed behavior of the primary implementations.
This is worth a separate issue, especially since it's not even covered by this CR. 😉