Skip to content

Add composite/album/${albumID}/song/${songID} #8

@royalicing

Description

@royalicing
  • Tagged template string composite()
  • Takes any number of elements: regex, constant string, array of strings, or generator function.
  • Transforms into generator function. Requires no changes to parser.

Example:

function* AlbumID() {}
const songIDRegex = /^\d+/;

function* GetSong() {
  const [albumID, [songID]] = yield composite`/album/${AlbumID}/song/${songIDRegex}`;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions