Closed ToebiasHT closed 1 year ago
This is how the spec defines functions in text format:
functype ::= '(' 'func' t1:vec(param) t2:vec(result) ')'
It should be like:
functype ::= '(' 'func' id? t1:vec(param) t2:vec(result) ')'
To show that functions can be named as well.
funcdef
That is the grammar for function types. The grammar for function definitions is here.
This is how the spec defines functions in text format:
functype ::= '(' 'func' t1:vec(param) t2:vec(result) ')'
It should be like:
functype ::= '(' 'func' id? t1:vec(param) t2:vec(result) ')'
To show that functions can be named as well.
funcdef