infinite width pict
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
- 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
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