google / google/codeworld

Constructor default name is confusing for blocks

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

説明

When creating a constructor, the default name is `Constructor`. After adding this once, you end up with what initially looks like TWO blocks called `Constructor` in the toolbox: one to define a new constructor, and one for the constructor you've just defined.

One solution might be to leave the name as "Constructor" in the toolbox, but automatically rename even the first one to add a number (Constructor1) when it's placed in the workspace.

This is minor.

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

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

調査の方向性

この issue ではファイルもテストも指定されていません。constructor の作成と toolbox/workspace の処理におけるエントリポイントを特定し、その後、名前が重複する場合の挙動を再現してください。初期状態でユーザーが定義した constructor を constructor-definition block と区別でき、後続の命名を妨げなければ完了です。

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

評価

技術スタック
haskell
領域
frontend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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