- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 18 May 2017 12:55:12 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 18 May 2017 19:55:49 UTC
This seems related to the discussion currently happening in https://github.com/heycam/webidl/pull/358, where we're attempting to add a shared primitive to Web IDL that all specs can use, and getting stuck. The point of contention is basically whether the pattern should be
```js
someAPI({
lang: "...",
dir: "...",
label: "a string governed by the lang/dir"
name: "another string, governed by the same lang/dir"
});
```
(the "`Localizable` base dictionary" solution)
or
```js
someAPI({
label: {
lang: "...",
dir: "...",
value: "a string governed by the lang/dir"
},
name: "another string, using the default lang/dir"
});
```
(the "`LocalizableString` union typedef" solution).
The former makes it easier to say that all strings have the same lang/dir. The latter allows more granular decision making, at the cost of verbosity.
I suppose you could even have both.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/178#issuecomment-302523375
Received on Thursday, 18 May 2017 19:55:49 UTC