ocaml-mlx / ocaml-mlx/mlx

Fragment support

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
148
Forks
7
Avg merge
2d 1h
Merged PRs (30d)
6

Description

JSX has a nice feature called fragments (<></>), which expresses the idea of a list of elements without a parent.

https://reasonml.github.io/reason-react/docs/en/jsx#fragment

I read that we don't want to bloat the syntax here https://github.com/ocaml-mlx/mlx/issues/16#issuecomment-2570959436, but I would like to propose it and see if the change isn't too invasive by implementing it myself

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 by reading the linked Reason React fragment documentation and the discussion in issue #16, then locate the JSX syntax implementation in this repository. Determine the scope of supporting <>...</> without unwanted syntax bloat; done means fragments parse and behave as lists of elements, with appropriate coverage in the existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.