Skip to content

Numeric separators in kebab names #134

@guybedford

Description

@guybedford

Came up in considering options for representing enums like:

enum tls-version {
  tls1,
  tls1-1,
  tls1-2,
  tls1-3
}

where it would be useful to be able to write an explicit underscore separator:

enum tls-version {
  tls1,
  tls1_1,
  tls1_2,
  tls1_3
}

It might just still be possible to still retain bijective mapping using names like TlsVersion::TLS1__2 / tls1_2 (double underscoring).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions