Skip to content
Snippets Groups Projects
Commit e3602c80 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Allow function definition for compound types

For instance, following constructions are syntactically correct
``
let f : R*R -> R*R, (x,y) -> (y, x);
let g : R*R -> R,   (x,y) -> x+y;
let h : R   -> R*R,  x    -> (x, x*x);
``
Semantic remains to be defined.

Also,
``
let f : R*R -> R*R, x -> x;
``
is a correct construction, but one will require `x[0]` and `x[1]` to be defined
to make this syntax useful.
parent 5d3e5b3d
No related branches found
No related tags found
1 merge request!37Feature/language
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment