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
Denotational semantics
(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!
===Denotations of data types=== Many programming languages allow users to define [[recursive data type]]s. For example, the type of lists of numbers can be specified by <syntaxhighlight lang=sml>datatype list = Cons of nat * list | Empty</syntaxhighlight> This section deals only with functional data structures that cannot change. Conventional imperative programming languages would typically allow the elements of such a recursive list to be changed. For another example: the type of denotations of the [[untyped lambda calculus]] is <syntaxhighlight lang=sml>datatype D = D of (D β D)</syntaxhighlight> The problem of ''solving domain equations'' is concerned with finding domains that model these kinds of datatypes. One approach, roughly speaking, is to consider the collection of all domains as a domain itself, and then solve the recursive definition there. [[Polymorphism (computer science)|Polymorphic data types]] are data types that are defined with a parameter. For example, the type of Ξ± {{code|list}}s is defined by <syntaxhighlight lang=sml>datatype Ξ± list = Cons of Ξ± * Ξ± list | Empty</syntaxhighlight> Lists of natural numbers, then, are of type {{code|nat list}}, while lists of strings are of {{code|string list}}. Some researchers have developed domain theoretic models of polymorphism. Other researchers have also modeled [[parametric polymorphism]] within constructive set theories. A recent research area has involved denotational semantics for object and class based programming languages.<ref>{{cite journal |first1=Bernhard |last1=Reus |first2=Thomas |last2=Streicher |title=Semantics and logic of object calculi |journal=Theor. Comput. Sci. |volume=316|issue=1 |pages=191β213 |year=2004 |doi=10.1016/j.tcs.2004.01.030 |doi-access=free }}</ref>
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
Denotational semantics
(section)
Add topic