- From: Masataka Yakura <notifications@github.com>
- Date: Mon, 26 Oct 2020 21:56:59 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 October 2020 04:57:11 UTC
@myakura commented on this pull request. > + +In this approach, `ChildNodePart` gets a new static function +which creates a list of `ChildNodePart`s which work together to set a value when the values are to be committed: + +```js +const [firstName, lastName] = ChildNodePart.create(element, null, null, [null, ’ ’, null]); +``` + +* **Pros**: Simplicity. +* **Cons**: Coming up with a nice syntax to create a sequence of `ChildNodePart` and string can be tricky. + +### Option 2. Introduce `ChildNodePartGroup` + +In this approach, we group multiple `ChildNodePart`s together by creating an explicit group: + +``` ```suggestion ```js ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/pull/899#pullrequestreview-517348282
Received on Tuesday, 27 October 2020 04:57:11 UTC