Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Structs

< >
Example from 1 languages: C
struct account { int account_number; char *first_name; char *last_name; float balance; };
Example from 1 languages: Chapel
record
Example from 1 languages: C3
struct Test { int x; float y; String z; }
Example from 1 languages: MoonBit
struct User { id: Int name: String mut email: String }
Example from 1 languages: Wax
(struct point (let x float) (let y float) )
Example from 1 languages: Jule
struct Employee { first_name: str last_name: str salary: f32 }
Example from 1 languages: Speedie
struct Fuel |int| A |byte| B
Example from 1 languages: 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
*

Languages with Structs include C, Chapel, C3, MoonBit, progsbase, C2, Wax, Jule, Speedie, Ion

*

View all concepts with or missing a hasStructs measurement

*

Read more about Structs on the web: 1.

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements