Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Rework definition context rules

オープン
#477 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
領域
tooling

調査の方向性

define-definition-context-refactoring-rule エントリポイントから始め、ここで説明されている置換の問題を理解するために issue #476 を確認してください。現在の動作を、issue で言及されている Rhombus の文マクロモデルと比較してください。呼び出し元に置換フォームの管理を要求せず、ハードコードされた定義コンテキストフォームにも依存しないアプローチが決定され、実装されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Creating a definition context rule with define-definition-context-refactoring-rule is somewhat awkward. There's a few usability issues:

  • You have to match the entire definition context, which is rarely useful.
  • You have to be careful to use ~replacement, ~splicing-replacement, and ~focus-replacement-on in order to avoid issues like #476.
  • The set of recognized definition context forms is hard-coded.

Something better should be possible. Perhaps something like how Rhombus macros work, where a statement macro can match on all following statements and statement macros return two values: an expansion and an "unprocessed tail". That would let Resyntax automatically use ~replacement, ~splicing-replacement, and ~focus-replacement-on, and it would remove the need for definition context rules to care about the forms earlier in the definition context.

主要言語
Racket
スター
70
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jackfirth/resyntax のほかの issue

jackfirth/resyntax の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。