bigskysoftware / bigskysoftware/_hyperscript

Alternative syntax for "install" command?

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

説明

Hyperscript's behaviors are a wonderful thing, but instantiating them on an element always reads a little funny. @dz4k has promoted `I am` as an alias for the `install` command, as in ``. While this reads wonderfully, it could certainly be trouble for the parser. Here are two alternatives to consider:

## "Use"
We're not currently using the keyword `use`, and it seems to fit semantically, as in:

```

```

## Distinct Attribute
Since this is such a DOM-speciic feature, it might work well to separate it into its own attribute -- something like:
```

```
or even
```

```

Thoughts?

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Issue には実装ファイルもテストも記載されていません。まず parser のエントリーポイントと DOM の動作処理を特定し、次に提案されている `use` 構文を、属性を分ける代替案と比較してください。合意された構文と、それに対応する parser および動作のカバレッジが揃えば完了です。

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

評価

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

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

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