Then the question is how to pass the function parameters
at function definition time
at function call time
Here's a first, rough attempt:
The frontend passes a tuple of two types of nodes:
with vtype of <type>_KEYWORD
with vtype of the <type>
At definition time, the backend raises an InvalidFunctionDefinition exception if there is something wrong with the type keywords.
At calling time, an InvalidParameters exception is raised if the the parameters are invalid, e.g. f('hello') when the function defined the first parameter's vtype to be v.INT.
We didn't define this in the spec, but since mongoose is strongly typed, I thought we would go with strongly-typed parameters:
Then the question is how to pass the function parameters
Here's a first, rough attempt:
The frontend passes a tuple of two types of nodes:
vtype
of<type>_KEYWORD
vtype
of the<type>
At definition time, the backend raises an
InvalidFunctionDefinition
exception if there is something wrong with the type keywords.At calling time, an
InvalidParameters
exception is raised if the the parameters are invalid, e.g.f('hello')
when the function defined the first parameter's vtype to bev.INT
.