racket / racket/scribble

Chunks inside improper lists are not expanded

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
250
Forks
102
Avg merge
11d 11h
Merged PRs (30d)
1

Description

What Racket version are you using?

6.4.0.15

What program did you run?
#lang scribble/lp2

@chunk[<bbb>
       1]

@chunk[<*>
       '(<bbb> . yyy)]
What was the expected output ?
'(1 . yyy)
What happened instead?
'(<bbb> . yyy)

It seems that scribble traverses only proper lists. #(<bbb> yyy), #&(<bbb> yyy) and #hash([<bbb> . yyy]) do not work either.

It would be nice to have chunks substituted inside all s-expression primitives.

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

Use the supplied #lang scribble/lp2 example as the entry point and reproduce the improper-list case, then compare it with the vector, box, and hash examples. Done means chunk references are substituted inside improper lists and the other listed s-expression primitives, producing '(1 . yyy) for the example.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.