You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a proposal that needs further discussion before implementing.
When designing the Codama standard, we needed to agree on a string casing for named nodes in order to compare them by names and went with camelCase to match the casing of node attributes.
The slight issue with camelCase is that it contains slightly less information than other casing such as Title Case or snake_case mainly due to number positioning. For instance, with snake_case we can define something like token_2022_3rd_edition without any ambiguity on the numbers 2022 and 3. On the other hand, camelCase cannot keep up with this distinction as it results in token20223rdEdition which re-snake_cased would give you token20223rd_edition.
The bottom line is, casings with explicit separators like snake_case keep more information than casing like camelCase and thus, using the former instead of the latter as a naming convention might make more sense.
This is a breaking change on the standard itself and would need to be a major version bump.
The text was updated successfully, but these errors were encountered:
This is a proposal that needs further discussion before implementing.
When designing the Codama standard, we needed to agree on a string casing for named nodes in order to compare them by names and went with
camelCase
to match the casing of node attributes.The slight issue with
camelCase
is that it contains slightly less information than other casing such asTitle Case
orsnake_case
mainly due to number positioning. For instance, withsnake_case
we can define something liketoken_2022_3rd_edition
without any ambiguity on the numbers 2022 and 3. On the other hand,camelCase
cannot keep up with this distinction as it results intoken20223rdEdition
which re-snake_cased
would give youtoken20223rd_edition
.The bottom line is, casings with explicit separators like
snake_case
keep more information than casing likecamelCase
and thus, using the former instead of the latter as a naming convention might make more sense.This is a breaking change on the standard itself and would need to be a major version bump.
The text was updated successfully, but these errors were encountered: