racket / racket/pict

infinite width pict

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

Nobody has claimed this yet.

Dominant language
Racket
Stars
18
Forks
22
PR merge metrics
No merged PRs in 30d

Description

The contract on pict-width doesn't rule out picts with +inf.0 as the width, but it does break various things, including scribble's rendering of picts. Here's one way such a pict can be created. Probably the best thing is to add more checking on functions like inset and also to update the contracts in the docs on functions like pict-width.

> (pict-width (inset (blank 10 10) +inf.0))
+inf.0

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

Reproduce the reported expression using pict-width, inset, and blank, then inspect the contracts for these operations and how Scribble renders picts. Determine which operations should reject infinite widths and which pict-width documentation contracts need updating; done means the invalid pict is handled without breaking rendering and the documentation matches the behavior.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.