google / google/codeworld

Type-specific popup editors for certain expressions

オープン
#891 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
discussion
主要言語
Haskell
スター
1.3k
フォーク
201
PR マージ指標
30日以内にマージされた PR はありません

説明

Certain expressions in code have types that are easier to edit in other ways than text. When we find a literal expression of these types, such as `RGB(0.5, 0.4, 0.2)`, or `polygon[(1, 2), (4, 2), (3, 3)]` containing no variables, we could offer a button on hover that opens that expression in a type-specific editor, such as an RGB color chooser, or a drawing interface for drawing polygons on a coordinate plane.

Some other type info can be inferred from the containing context, so for example a number could be interpreted as an angle because it's used as an argument to `rotated`.

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

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

調査の方向性

Issue にはファイルもテストも記載されていません。まず、式がどのように認識され、hover アクションがどのように描画されるかを追跡します。実装前に、サポートされるリテラル型、エディターの動作、コンテキスト推論を明確にしてください。完了の定義は、合意したスコープと選択した例に対するテストによって定めるべきです。

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

評価

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

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

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