racket/racket

syntax-parse: attributes don't cooperate with binding arrows

オープン

#3,008 opened on 2020/01/19

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Racket (696 件のフォーク)github user discovery
feature requestgood first issue

Repository metrics

Stars
 (5,198 個のスター)
PR merge metrics
 (平均マージ 81d 9h) (30d で 4 merged PRs)

説明

In this macro:

(define-simple-macro (with-lock lock body:expr ...+)
  #:declare lock (expr/c #'lock?)
  (call/lock lock.c body ...))

DrRacket draws a binding arrow from lock to the entire lock.c identifier, instead of just the lock part.

If I rename lock to l using DrRacket, it replaces the entire lock.c identifier with l instead of with l.c like I'd expect.

コントリビューターガイド