Phrases after ; ignored in rtop
Open
Nobody has claimed this yet.
Rtop
- Dominant language
- OCaml
- Stars
- 10.3k
- Forks
- 438
- PR merge metrics
- No merged PRs in 30d
Description
For example:
Reason # let () = print_endline "Hello"; print_endline "World";
Hello
This evaluates both prints in a file but the second one is dropped when entered directly into rtop. I suspect that this is a holdover from the ;/;; conversion from OCaml.
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
Start by reproducing the example in rtop and compare it with evaluating the same phrases in a file. Then inspect the rtop input handling and the semicolon conversion mentioned in the report. Done means both print_endline calls execute when entered directly into rtop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- cli, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100