GO-V.ORG
As seen in

Phase distinction

Phase Distinction is a property of programming languages that observe a strict division between types and terms.[src] A concise rule for determining whether phase distinction is preserved in a language or not has been proposed by Luca Cardelli - If A is a compile-time term and B is a subterm of A, then B must also be a compile-time term.[src] Most statically typed languages conform to the principle of phase distinction.[src] However, some languages with especially flexible and expressive type systems (notably dependently typed programming languages) allow types to be manipulated in the same ways as regular terms.[src] They may be passed to functions or returned as results.[src] A language with phase distinction may have separate namespaces for types and run-time variables.[src] In an optimizing compiler, phase distinction marks the boundary between expressions which are safe to erase.[src]

Phase Distinction is a property of programming languages that observe a strict division between types and terms.[src] A concise rule for determining whether phase distinction is preserved in a language or not has been proposed by Luca Cardelli - If A is a compile-time term and B is a subterm of A, then B must also be a compile-time term.[src] Most statically typed languages conform to the principle of phase distinction.[src] However, some languages with especially flexible and expressive type systems (notably dependently typed programming languages) allow types to be manipulated in the same ways as regular terms.[src] They may be passed to functions or returned as results.[src] A language with phase distinction may have separate namespaces for types and run-time variables.[src] In an optimizing compiler, phase distinction marks the boundary between expressions which are safe to erase.[src] ==Theory== Phase distinction is used in conjunction with static checking.[src] By using a calculus based system, phase distinction removes the need to enforce linear logic between different types and terms of programming.[src] ===Introduction=== Phase Distinction distinguishes between processing to be done at compile-time versus processing done at runtime.[src] Consider a simple language, with terms: t ::= true | false | x | λx : T .[src] t | t t | if t then t else t and types: T ::= Bool | T -> T Note how types and terms are distinct.[src] At compile time, types are used to verify the validity of the terms.[src] However, types do not play any role at runtime.[src] ==References==[src]

22 sentences · 22 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Phase distinction." encyclopegia.org, 2025, https://encyclopegia.org/wiki/phase-distinction. Accessed 06 December 2026.

Chicago

"Phase distinction." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/phase-distinction.

APA

encyclopegia.org. (2025). Phase distinction. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/phase-distinction

Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1315054182 · 0.5 · snapshot enwiki-001315054182

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.