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

Provide convenient access to XML element name #225

Open
jclark opened this issue Jun 18, 2019 · 1 comment
Open

Provide convenient access to XML element name #225

jclark opened this issue Jun 18, 2019 · 1 comment
Assignees
Labels
enhancement Enhancement to language design lang Relates to the Ballerina language specification
Milestone

Comments

@jclark
Copy link
Collaborator

jclark commented Jun 18, 2019

Assuming

we should provide an equally convenient way to access the error reason string and XML element name (this would also work for the XML processing instruction target). For the XML element name case, it should be an lvalue.

At least in the XML case, it is reasonable to think of the XML element name as being a special unnamed attribute, which suggests using E._ as the syntax.

@jclark jclark added enhancement Enhancement to language design lang Relates to the Ballerina language specification labels Jun 18, 2019
@jclark jclark added this to the 2019R4 milestone Jun 18, 2019
@jclark jclark self-assigned this Jun 18, 2019
@jclark jclark modified the milestones: 2019R5, 2020R1 Dec 21, 2019
@jclark jclark mentioned this issue Feb 3, 2020
@jclark jclark modified the milestones: 2020R1, 2020R2 Feb 24, 2020
@jclark
Copy link
Collaborator Author

jclark commented Mar 25, 2020

Assuming we change errors to use branding (#413, #459), then this will apply only to XML elements and processing instructions.

@jclark jclark changed the title Provide convenient access to error reason string and XML element name Provide convenient access to XML element name Mar 25, 2020
@jclark jclark modified the milestones: Swan Lake dump, Later Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to language design lang Relates to the Ballerina language specification
Projects
None yet
Development

No branches or pull requests

1 participant