Skip to content

Allow for foreign proc def to alias the underlying foreign proc #467

@jimbxb

Description

@jimbxb

Following from #366.

Currently in the stdlib, most of the Wybe procs that simply call a foreign proc could use the def foreign lang syntax. However, as the proc they call has a different name, the syntax sugar can't be applied.

As a proposal, an extended syntax sugar could be like the following:

def foreign lang foo=bar(args)

This would compile as

def foo(args) {
    foreign lang bar(args)
}

Of course, proc modifiers and the resource use clause should be optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions