You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.