racket / racket/racket

[Feature Request] add syntax-property-update

Open
#3,392 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Racket
Stars
5.2k
Forks
698
Avg merge
18h 34m
Merged PRs (30d)
5

Description

It would be nice to be able to replace:

  (define-for-syntax (combine-prop b a)
    (if a (if b (cons a b) a) b))

  (syntax-property 
   stx
   'disappeared-use 
   (combine-prop 
    id1
    (combine-prop
     id2
     (syntax-property stx 'disappeared-use))))

with:

(syntax-property-update 
 stx
 'disappeared-use
 id1 id2)

or something along this line.

Contributor guide

Open the contributing guide

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

The issue names no files or tests. Start by locating the existing syntax-property API and its tests, then compare their behavior with the proposed syntax-property-update example. Done should include a decided update signature and semantics for combining the existing property with id1 and id2, along with coverage for the resulting property.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
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.