Skip to content

binding expressions for function invocation #15

@cowboyd

Description

@cowboyd

One of the nice things about PlatformScript function invocation syntax is that we get to have "extra" keys of the invocation. For example:

$(x): "%($x.say), %({ $capitalize: $x.to })"
key1: ignored
key2: also ignored

We can use these keys as $let style binding expressions that enable you to compute subexpressions scoped to the function body.

$(x): "%($say), %($to)"
say: $x.say
to: {$capitalize: $x.to}

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