WebAssembly / WebAssembly/component-model

Numeric separators in kebab names

Open
#134 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.