Skip to content

Replace 'entity' identifier example from cdl.md #1982

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qmacro
Copy link
Collaborator

@qmacro qmacro commented Jul 22, 2025

In the "Keywords & Identifiers" section there's an example of the keyword entity being used as an identifier, which seems confusing and "asking for trouble" :-)

Moreover, a little further on, in a "Warning" section, it states "Delimited identifiers in general, but in particular non-ASCII characters, or keywords as identifiers should be avoided as much as possible, for reasons of interoperability." (emphasis mine).

In addition, the definition of the entity aspect also had an Integer key called ID, which is perhaps not to be universally encouraged (better to use cuid with its UUID type).

So I reworked this section.

In the "Keywords & Identifiers" section there's an example of the keyword `entity` being used as an identifier, which seems confusing and "asking for trouble" :-)

Moreover, a little further on, in a "Warning" section, it states "Delimited identifiers in general, but in particular non-ASCII characters, _or keywords as identifiers_ should be avoided as much as possible, for reasons of interoperability." (emphasis mine).

In addition, the definition of the `entity` aspect also had an `Integer` key called `ID`, which is perhaps not to be universally encouraged (better to use `cuid` with its `UUID` type).

So I reworked this section.
@qmacro qmacro requested a review from smahati as a code owner July 22, 2025 16:18
@renejeglinsky renejeglinsky requested a review from stewsk August 11, 2025 19:21
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.

1 participant