Nested struct declaration

Structural records would give you the nesting (without the privacy controls or naming).

// From the RFC
struct RectangleTidy {
    dimensions: {
        width: u64,
        height: u64,
    },
    color: {
        red: u8,
        green: u8,
        blue: u8,
    },
}
7 Likes