bbcmicrobit / bbcmicrobit/PythonEditor
blocks: no warnings when connecting 'incompatible' blocks
- 主要言語
- JavaScript
- スター
- 201
- フォーク
- 126
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
(This one probably isn't trivial, as I think it's partially a blockly/Python limitation)
One of the things that blocks is quite good at is avoid syntax errors.
However, our current implementation doesn't protect the user from type error as well as it could.
For example, the following code fails as soon as it is run on the micro:bit

PXT gives slightly more useful feedback:

Do we have a way of giving more immediate feedback to users about type mismatches? Or even better, perhaps (although it's spooky action at a distance) automatically inserting the required conversion so it 'just works'?
コントリビューションガイド
調査の方向性
この issue にはファイル、テスト、エントリーポイントが記載されていません。まずブラウザーと micro:bit で互換性のないブロックの例を再現し、その後、Blockly/Python における現在の型処理の挙動を調査してください。型の不一致に対する即時のフィードバックを提供するか、安全な変換を挿入する、合意済みのアプローチが得られれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, python
- 領域
- embedded-iot, frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100