Skip to content

Seems like generator functions are not supported in paperscript #1357

@bombs-kim

Description

@bombs-kim

Generator functions are one of my favorite syntax in JS and make a room for performance improvements through lazy evaluations. But it seems like it's not supported in paperscript, yet. For example,

function* idMaker() {
  var index = 0;
  while (index < 3)
    yield index++;
}

this simple code cannot be interpreted in paperscript.

About function generators

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions