Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon



Structs are a feature.

A composite data type (or record) declaration that defines a physically grouped list of variables to be placed under one name in a block of memory, allowing the different variables to be accessed via a single pointer.

Languages with Structs include C, Ion, Jule

Example from C:
struct account { int account_number; char *first_name; char *last_name; float balance; };
Example from Ion:
{ first : "Tom" , last: "Riddle" } // Structure with two fields {"first":"Tom","last":"Riddle"} // The same value with confusing style {center:{x:1.0, y:12.5}, radius:3} // Nested struct
Example from Jule:
struct Employee { first_name: str last_name: str salary: f32 }
streams-feature.html 路 structs-feature.html 路 supports-breakpoints-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub