Skip to content

Recognize function pointers as functions (Fn("foo") => fn foo(...)) #78

Open
@schungx

Description

@schungx

@tamasfe I have a new drop in the repo that implements a convenient shorthand to create function pointers.

fn fib(a) { ... }

let fp = Fn("fib");    // original syntax

let fp = fib;        // new syntax, de-sugars to Fn("fib")

The LSP may need to be aware of this, as it might flag fib as an undeclared variable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions