jackfirth / jackfirth/resyntax
First cut at some Typed Racket refactorings
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 70
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Here are some ideas for using resyntax on Typed Racket code. These are quite superficial and don't depend on any knowledge of the types.
-
Singleton union types: rewrite the type
(U t)to justt. -
Replace
define-type-aliaswithdefine-type. -
Replace
define-typed-structanddefine-typed-struct:(with a colon at the end) withstruct. -
Replace
UnwithU.
This is just a sampler of legacy forms taken from here.
Contributor guide
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
Start with the Typed Racket Legacy Forms reference linked in the issue, then inspect resyntax's existing refactoring entry points. Scope the work around the four listed rewrites: singleton (U t), define-type-alias, both define-typed-struct forms, and Un. The issue names no files or tests; done means each listed legacy form is transformed to its corresponding modern form.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100