Skip to content

Is rest a good name for extra fn mappings? #46

Description

@cowboyd

When invoking a function as a map, you can pass "modifiers":

$call: argument
mod1: "hello"
mod2: "world"

Right now these are represented as rest in the PSValue for a function, but this relates more the the implementation than anything else in the sense that we "spread out the keys of a map when looking if something is a function call":

let [first, ...rest] = map.entries();

What should the platformscript terminology be for this quite unique capability. "keys", "modifiers", "options"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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