Infix operators spacing inconsistency
Open
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 10.3k
- Forks
- 438
- PR merge metrics
- No merged PRs in 30d
Description
Creating such aliases for float operators results in strange formatting of multiply operator. It should be consistent with others as follows.
Expected:
let (+) = (+.);
let (*) = (*.);
let (-) = (-.);
let (/) = (/.);
Received:
let (+) = (+.);
let ( * ) = ( *. );
let (-) = (-.);
let (/) = (/.);
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
Reproduce the issue using the Expected and Received Reason snippets, then trace the formatter or parser entry point that handles aliases for float infix operators. The work is done when formatting produces consistent spacing for all four operators, matching the Expected output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- compilers, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100