WebAssembly / WebAssembly/component-model
Numeric separators in kebab names
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 1.4k
- Forks
- 130
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 15
Description
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).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the enum syntax examples in the issue and review the proposed underscore and double-underscore naming forms. Determine whether numeric separators should be supported and how names such as tls1_2 map bijectively to generated names; done requires an agreed design.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100