Skip to content

World-Wide-Developer-Association/type-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Type System

This document records common types used in different cases for those who want to create compiling languages or scripting languages.

Notice: it won't collect all types, but the most common parts.

  • Basic
  • Collections

Blueprint

typesystem blueprint

Basic

CategoryTypeDescriptionSQL Std. / Ext.HTML5C[1] / C++RustPHP / Doctrine
Integerbool0, 1 or True, False, or Yes, NoBitboolean_Bool (c99) / boolboolbool
tinyint0~255Tinyintrange, number i8,u8int / smallint, integer, bigint
smallint-215~215Smallintshort, inti16,u16
int-231~231Intlongi32,u32
bigint-264~264/ Bigintlong longi64,u64
Floatfloatmantissa >= 7Realfloatf32
doublemantissa >= 15Double, Floatdoublef64float, double, real / float
Decimal / Numericdecimal-1038~1038Decimal / decimal
Textcharfixed lengthCharchar[]&str
varcharVarchartextchar* / stringStringstring / string, text
textTexttextarea
BinarybinaryBinaryvoid* / binary
imageImagefile / blob
DatetimetimeTimetime / time
dateDatedate / date
datetimeDatetimedatetimeDatetime / datetime

About

Type System (common types appear during programming)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published