keid-lang / keid

Central repository for the Keid programming language
0 stars 1 forks source link

Implement the anonymous structure decomposition operator #54

Open lucasbaizer2 opened 1 year ago

lucasbaizer2 commented 1 year ago

See #51 for information about anonymous structures.

This issue is to track the decomposition operator, which is used like this:

let x: { y: uint32, z: uint32 } = { y: 5, z: 10, }
let { y: uint32, z: uint32 } = x
std::io::println("y = ", y, " z = ", z)