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

Improve CDDL syntax #870

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Improve CDDL syntax #870

wants to merge 5 commits into from

Conversation

caugner
Copy link

@caugner caugner commented Jan 28, 2025

@caugner caugner marked this pull request as draft January 28, 2025 18:09
@caugner caugner changed the title Remove stray semicolon Remove stray semicolons Jan 28, 2025
@caugner caugner changed the title Remove stray semicolons Improve CDDL syntax Jan 28, 2025
@caugner caugner marked this pull request as ready for review January 28, 2025 18:44
index.bs Show resolved Hide resolved
Copy link
Contributor

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

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

@@ -1695,7 +1695,7 @@ session.PacProxyConfiguration = (
)

session.SystemProxyConfiguration = (
proxyType: "system"
proxyType: "system",
Copy link
Contributor

@OrKoN OrKoN Jan 28, 2025

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@OrKoN Would you suggest adding commas on the last item as well (e.g. behind Extensible)?

Copy link
Contributor

Choose a reason for hiding this comment

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

In my opinion, this would at least help with future changes along those lines, ensuring that only the added or removed item is affected, rather than modifying an existing one just to add or remove a comma.

Copy link
Contributor

Choose a reason for hiding this comment

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

should we then keep trailing // for the same reason?

@@ -1660,7 +1660,7 @@ session.ProxyConfiguration = {
session.DirectProxyConfiguration //
session.ManualProxyConfiguration //
session.PacProxyConfiguration //
session.SystemProxyConfiguration //
session.SystemProxyConfiguration
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, trailing // are also valid per the CDDL grammar (and I don't see any text in the RFC that forbidd them), so if you keep trailing commas, you could keep // for the same reason.

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.

4 participants