A domain is a named set of values. Its main application in computing science is as a specification of the possible values of variable, or—what amounts to the same—as a constraint for an attribute in a database.
Defining a domain for a set of values is essential in many computer programs. It ensures that incorrect data are left out, and is often used as a tbles. Thus, for instance, it cannot contain some integer values and some string values.
Example of code fragments that define domain sets:
int odd = {1, 3, 5, 7, 9}; String members = {"Jason", "Mary", "Bob", "Andrew"}; int ageRange; for i = 1 to 80 ageRange = i;Famous quotes containing the words set and/or domain:
“Men would never be superstitious, if they could govern all their circumstances by set rules, or if they were always favoured by fortune: but being frequently driven into straits where rules are useless, and being often kept fluctuating pitiably between hope and fear by the uncertainty of fortunes greedily coveted favours, they are consequently for the most part, very prone to credulity.”
—Baruch (Benedict)
“In the domain of art there is no light without heat.”
—Victor Hugo (18021885)