google / google/codeworld

No special syntax highlighting for common identifiers

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

説明

This is a bit of a bikeshed issue, but I’d like to raise it anyways. Feel free to close without much discussion if you disagree.

Currently, CodeWorld syntax highlighting highlights names that happen to be defined in the prelude library (`Double`, `True`) different that names from other libraries (`Event`, `Picture`) or custom-defined things. Similar for function (e.g. `id`).

I generally disapprove of this approach, as it hides the fact that even the Prelude is just a library, and that `Double` and `Event` are both types of their own right. The difference between the two is not worth this distinction, and the type of, say `interactionOf`, looks bad with these types printed differently.

Also, the `Prelude` changes over time, making this highlighting inconsistent.

I’d like to see no special highlighting of predefined identifiers.

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

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

調査の方向性

まず、CodeWorld の構文ハイライトのエントリーポイントと、Prelude の識別子と他のライブラリやユーザーコードから提供される名前を区別しているロジックを見つけます。定義済み識別子に対する特別なハイライトを削除し、Double、True、Event、Picture、id などの型や関数が他の識別子と同じように扱われることを確認します。

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

評価

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

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

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