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

Rename Token variables for object and array structural characters #159

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Feb 12, 2025

WARNING: This commit contains breaking changes.

This renames the following jsontext.Token variables:

  • ArrayStart => BeginArray
  • ObjectStart => BeginObject
  • ArrayEnd => EndArray
  • ObjectEnd => EndObject

According to RFC 8259, section 2, the formal grammatical names are:

  • begin-array
  • begin-object
  • end-array
  • end-object

Use the same naming scheme for the Go variables.

According to RFC 8259, section 2, the formal grammatical names are:

- begin-array
- begin-object
- end-array
- end-object

Use the same naming scheme for the Go variables.
Copy link
Collaborator

@mvdan mvdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally I preferred the old names, but I don't have an issue with following the spec naming

@dsnet dsnet merged commit 38f2338 into master Feb 12, 2025
8 checks passed
@dsnet dsnet deleted the jsontext-rename-delims branch February 12, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants