Structs

ESPL1000 uses struct to define a Composite Data Type.
ESPL1000 structs like C structs semantically, but different syntactically. ESPL1000 uses ';' at the end of each struct member declaration, same as in C, because this notation is both simple on it's own and also familiar to those who know C.

Example

struct MyStruct {
	int a;
	MyStruct b;
}

Struct Field Reordering

ESPL1000 practises Field Reordering in Structs, to remove unnecessary padding inside a struct.
Read more: The Lost Art of Structure Packing