Dash-case keys

Sultan Tarimo thysultan at gmail.com
Tue Jan 29 07:45:31 UTC 2019

That might have been the case, but the expectation that an unquoted form should equally have a quoted form or vice-versa is not an issue in practice given the presence of a similar but opposite semantic in the private sigil access notation proposal: object.#validPrivateSigil -> object[‘#invalidPrivateSigil’].

In kind, this would exploit the same grammar affordances to be born from this. 

That is obj.font-size would rightly be invalid. The more common interfacing with this notation would be through iterators. That is: 

for (var key in object) {
    style.setProperty(key, object[key])

The addition of which would see to improve the ergonomics with using dash-case keys common in the CSS grammar within the object literals syntax.

More information about the es-discuss mailing list