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

Add function version of foreign function declaration #469

Open
pschachte opened this issue Oct 4, 2024 · 0 comments
Open

Add function version of foreign function declaration #469

pschachte opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pschachte
Copy link
Owner

pschachte commented Oct 4, 2024

As a convenience/comfort for users accustomed to thinking of foreign procs as functions, allow a syntax like

`def foreign` *language* *function*`(`*param*, *param*, ...`)` `:` *type*

as equivalent to

`def foreign` *language* *function*`(`*param*, *param*, ..., `result`:*type*`)`

If #467/#468 is implemented, this should be extended in the obvious way.

@jimbxb jimbxb added the enhancement New feature or request label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants