Skip to content

Add function version of foreign function declaration #469

@pschachte

Description

@pschachte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions