Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jimbxb opened this issue Oct 3, 2024 · 0 comments
Open

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

jimbxb opened this issue Oct 3, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jimbxb
Copy link
Collaborator

jimbxb commented Oct 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant