mangle icon indicating copy to clipboard operation
mangle copied to clipboard

proper syntax for struct and map types

Open burakemir opened this issue 2 years ago • 0 comments

Right now, in order to specify that an argument is a struct, one has to write something like

Decl foo(X) bound [fn:Struct(/field1, <type of field1>, /field2, <type of field2>...)].

The proper way to write such a type would be:

Decl foo(X) bound [ { /field1: <type of field1>, /field2: <type of field2>} ].

so that the struct type looks more like a struct value. Same for map types.

burakemir avatar Nov 22 '23 13:11 burakemir