racket / racket/rhombus

Eager expansion of definitions’ right-hand sides can be detected

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

Nobody has claimed this yet.

Dominant language
Racket
Stars
601
Forks
74
Avg merge
2d 10h
Merged PRs (30d)
5

Description

For example, this program

#lang rhombus
block:
  def a:
    b
  def b = #false
  #false

makes the reference to b a syntax error, while this program

#lang rhombus
block:
  def a:
    #false
    b
  def b = #false
  #false

is a run-time exception, like the Racket counterpart.

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 running the two Rhombus programs in the issue and compare their behavior with the Racket counterpart. Trace how the right-hand sides of the definitions are expanded, then determine how the differing handling of the reference to b should be reported or prevented; done means the two cases behave consistently with the intended semantics.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.