Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Data type
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Definition== {{harvtxt|Parnas|Shore|Weiss|1976}} identified five definitions of a "type" that were used—sometimes implicitly—in the literature: ; Syntactic: A type is a purely [[syntax|syntactic]] label associated with a [[variable (computer science)|variable]] when it is declared. Although useful for advanced type systems such as [[substructural type system]]s, such definitions provide no intuitive meaning of the types. ; Representation: A type is defined in terms of a composition of more primitive types—often machine types. ; Representation and behaviour: A type is defined as its representation and a set of [[operator (computer programming)|operator]]s manipulating these representations. ; Value space: A type is a set of possible values which a variable can possess. Such definitions make it possible to speak about ([[disjoint union|disjoint]]) [[union (set theory)|union]]s or [[Cartesian product]]s of types. ; Value space and behaviour: A type is a set of values which a variable can possess and a set of [[function (computer science)|function]]s that one can apply to these values. The definition in terms of a representation was often done in imperative languages such as [[ALGOL]] and [[Pascal (programming language)|Pascal]], while the definition in terms of a value space and behaviour was used in higher-level languages such as [[Simula]] and [[CLU (programming language)|CLU]]. Types including behavior align more closely with [[object-oriented]] models, whereas a [[structured programming]] model would tend to not include code, and are called [[plain old data structure]]s.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Data type
(section)
Add topic