Skip to content
EntityQ865760· pop 36· linked from 906 articles

類型系統

Sign in to save

Also known as typing discipline

將稱為類型的屬性分配給計算機程序的各種構造的規則集,例如變量,表達式,函數或模塊

Described at

What Is Type System? Definition, Role & Examples | C3 AI

What is type system? This glossary entry defines how a type system describes and constrains data in software and why it matters for Enterprise AI. Learn more.

c3.ai →

Type system is the implementation of objects or models (types) in a model-driven architecture . Types represent a data model of the object and its properties, and can be extended or mixed with other type definitions to create more complex data structures. Canonical schemas define the data structure and relationships of each type, and canonical transforms define the steps required to load data from the source system into the canonical schema (type). Using a type system allows for a standard data model that is consistent and uniform across all applications, abstracting the complexity of the underlying data and processes. If application logic is designed and written against the type system, then individual data sources and services can be connected to the type system without requiring changes to the applications built on top. This abstraction layer simplifies the overall implementation process and reduces the complexity of connecting all the different data sources and use cases.

Excerpt from a page describing this subject · 2,540 chars · not written by Vinony

Wikidata facts

Subclass of
formal system
Show 8 more facts
Sources (2)

via Wikidata · CC0

Article · 中文

在计算机科学中,类型系統(英語:type system)用于定義如何將程式語言中的數值和归類为许多不同的型別,如何操作这些型別,这些型別如何互相作用。型別可以确认一个值或者一组值具有特定的意义和目的(雖然某些型別,如抽象型別和函式型別,在程式執行中,可能不表示為值)。型別系統在各種語言之間有非常大的不同,也許,最主要的差異存在於編譯時期的語法,以及執行時期的操作实现方式。 編譯器可能使用值的靜態型別以最佳化所需的儲存區,並選取對值運算時的較佳演算法。例如,在許多C編譯器中,「浮點數」資料型別是以32 位元表示,與IEEE 754規格一致的單精度浮點數。因此,在數值運算上,C應用了浮点数規範(浮點數加法、乘法等等)。 型別的約束程度以及評估方法,影響了語言的型別。更進一步,程式語言可能就部分,對每一個型別都對應了一個極度個別的演算法的運算。型別理論研究型別系統,儘管實際的程式語言型別系統,起源於電腦架構的實際問題、編譯器實作,以及語言設計。

Abstract from DBpedia / Wikipedia · CC BY-SA