wiki:Types/Struct

Structures

Traditionally a Structure is an ordered set of named (referenced by a symbol binding) slots. Named Tuples or Records could be viewed as structured types.

  • Members (slots) are referenced by symbols (bindings)
  • Usually a heap-allocated continuous blocks of memory (implementation specific)

struct is a data type that lets you name and put together multiple related values that make up a meaningful group (a concept) to represent some real-world relations.

Structures are the basic building blocks. In some languages such as Haskell these are called Records.

The notion of a structured data (a set of records) is the basis of sub-fields of CS like SQL and serialization formats like JSON.


See also Traits

Last modified 14 months ago Last modified on Dec 18, 2018, 1:08:26 PM
Note: See TracWiki for help on using the wiki.