notexOPENOverview
Notex/Languages/Code Review: Structs
01.31LESSON 31 OF 33 · 1 MIN READ

Code Review: Structs

Always free to read
  • Use structs to group related data.

  • Use named struct literals for anything beyond two or three fields.

  • Use a struct, not a map, when you have a known set of fields. Don’t fight against the type system.

Progress is saved on this device.
KEEP EXPLORING

One note leads to another.

Back to the library →
⌕
Search across the entire library ⌘ K