Ticket #12 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

Keywords after get or set

Reported by: brendan Assigned to: anonymous
Type: feature Priority: major
Milestone: M0 Component: Proposals
Version: 4 Keywords:
Cc: jeffdyer, brendan, lth

Description (last modified by fcheng) (diff)

get fld() {...} does not allow fld to be a lexical non-identifier, but regular field initialisers can be named by a number or a string as well as by a lexical identifier.

  • ES4 allows namespace-qualified identifiers for field initialiser labels, in addition to lexical identifiers, strings, and numbers.
  • Note also that catchalls can handle arbitrary property identifiers.

Related Mozilla Bug 379566

Wiki location => proposals:getters_and_setters

Related issue: Ticket # 13 Shared getter or setter function values

Discussion: Brendan and Lars think arbitrary identifiers should be allowed.

Attachments

Change History

Changed 2 years ago by fcheng

  • description changed from get fld() {...} does not allow fld to be a lexical non-identifier, but regular field initialisers can be named by a number or a string as well as by a lexical identifier. * ES4 allows namespace-qualified identifiers for field initialiser labels, in addition to lexical identifiers, strings, and numbers. * Note also that catchalls can handle arbitrary property identifiers. Related [https://bugzilla.mozilla.org/show_bug.cgi?id=379566 Mozilla Bug 379566] Wiki location => [https://intranet.mozilla.org/ECMA/wiki/doku.php?id=proposals:getters_and_setters proposals:getters_and_setters] Discussion: Brendan and Lars think arbitrary identifiers should be allowed. to get fld() {...} does not allow fld to be a lexical non-identifier, but regular field initialisers can be named by a number or a string as well as by a lexical identifier. * ES4 allows namespace-qualified identifiers for field initialiser labels, in addition to lexical identifiers, strings, and numbers. * Note also that catchalls can handle arbitrary property identifiers. Related [https://bugzilla.mozilla.org/show_bug.cgi?id=379566 Mozilla Bug 379566] Wiki location => [https://intranet.mozilla.org/ECMA/wiki/doku.php?id=proposals:getters_and_setters proposals:getters_and_setters] Related issue: [http://es-lang.org/es4/bugs/ticket/13 Ticket # 13 Shared getter or setter function values] Discussion: Brendan and Lars think arbitrary identifiers should be allowed.

Changed 2 years ago by lth

  • cc set to jeffdyer, brendan, lth

Jeff, what do you say?

Changed 2 years ago by jeffdyer

That's fine. I'll update the grammar.

Changed 2 years ago by jeffdyer

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

Resolution: accepted. grammar updated.

Note: See TracTickets for help on using tickets.