How to denote generator methods?

Herby Vojčík herby at mailbox.sk
Tue Jan 10 01:24:26 PST 2012


Hi,

for a function, you can instead of

  method: function (args) { body },

use the convenient (and non-enumerating)

  method (args) { body }

in literal / class.

But for a generator


  gen: function* (args) { body }

what can you use to create a generator method?
Would

  *gen (args) { body }

be possible?

Herby


More information about the es-discuss mailing list