reasonml / reasonml/reason

Phrases after ; ignored in rtop

Open
#1,188 0 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.