Ticket #30 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

constant forms of namespace-qualified identifiers

Reported by: dherman Assigned to: anonymous
Type: enhancement Priority: major
Component: Proposals Version: 4
Keywords: Cc:

Description (last modified by brendan) (diff)

Allow constant forms of namespace-qualified identifiers, analogous to constant forms of property names:

var obj = {
    ns::"@foo" : 100,
    ns::bar : 200,
    ns::42 : 300
}

which is similar to:

var obj = {
    "@foo" : 100,
    bar : 200,
    42 : 300
}

except with namespace prefixes (assuming namespace prefixes from #29)

Attachments

Change History

Changed 3 years ago by brendan

  • description changed from Allow constant forms of namespace-qualified identifiers, analogous to constant forms of property names: {{{ #!js var obj = { ns::"foo" : 100, ns::bar : 200, ns::42 : 300 } }}} which is similar to: {{{ #!js var obj = { "foo" : 100, bar : 200, 42 : 300 } }}} except with namespace prefixes (assuming namespace prefixes from #29) to Allow constant forms of namespace-qualified identifiers, analogous to constant forms of property names: {{{ #!js var obj = { ns::"@foo" : 100, ns::bar : 200, ns::42 : 300 } }}} which is similar to: {{{ #!js var obj = { "@foo" : 100, bar : 200, 42 : 300 } }}} except with namespace prefixes (assuming namespace prefixes from #29)

Changed 3 years ago by jeffdyer

  • status changed from new to closed
  • resolution set to fixed

Igor's comment in #29 suggests the same thing, with examples. There was agreement at the Oslo meeting that this syntax is good, it fits the existing grammar nicely, so I suggest it is resolved.

Resolution: accepted

Note: See TracTickets for help on using tickets.