Multiple tests for `case` in `switch`
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 132
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
It should look like this:
Jisp source:
(switch x
(case val0 val1 val2 <body>))
Compiled JS:
switch (x) {
case val0:
case val1:
case val2:
<body>
break;
}
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
Use the Jisp and compiled-JavaScript examples in the issue as the acceptance criteria, and first locate the compiler entry point that handles switch and case forms. Confirm that multiple case values produce the shown fall-through cases, shared body, and break behavior, with focused coverage for the new form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100