Examples of Data Types in Different Systems
I'm not quite sure why I've started to pull this together. It's a simple comparison of the "fundamental data types" in a few different systems.
I think the idea is to see what types are considered most fundamental, and what the differences in these data types says about the systems themselves. A sort of "reverse-engineered" card-sorting exercise.Ultimately it's to do with thinking about "universal ontologies" -- which are things I am certain you cannot have. So why I am thinking about something that is unattainable... I do not know.
Example Data Types from c# (.Net)
(Via Built-in types - C# References)
"Value Types"
boolbytesbytechardecimaldoublefloatintuintnintnuintlongulongshortushort
"Reference Types" (Built in)
objectstring(including@verbatim string literalsand"""raw string literals""")dynamicdelegate(see)
"Reference types" (more!)
recordclassinterfaceNullable reference types
"void"
void(see)
"Unmanaged types"
- (all Value types) plus:
enumpointertuple- any user-defined
structwith only fileds of unmanaged types
Example Data Types from SQL Server
(Via Data types (Transact-SQL))
"Exact numerics"
tinyintsmallintintbigintbit(i.e.Boolean)decimal(akanumeric)moneysmallmoney
"Approximate numerics"
floatreal
"Date and time"
datetimedatetime2datetimeoffsetdatetimesmalldatetime
"Character strings"
charvarchartext
"Unicode character strings"
ncharnvarcharntext
"Binary strings"
binaryvarbinaryimage
"Other data types"
cursorgeographygeometryhierarchyidjsonrowversionsql_varianttableuniqueidentifierxml
Example Data Types from SEQ
(Via Data types)
'single quoted'- strings (which we've already seen); the quote character ' can be escaped by doubling: 'Can''t'123,0.45,0xc0ffee- numbers, internally represented as 128-bit decimal values30d,100ms- durations, specified as whole numbers of days, hours, minutes, seconds, or ms millisecondstrueandfalse- Booleans[1, 'test', true]- arrays with[0](zero-based) numeric indexing{ace: 1, 'beta gamma': 23}- object literals with string or identifier keysnull