mitranim / mitranim/jisp

Multiple tests for `case` in `switch`

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.