Intersection type
id:
intersection-type-206-14903368
title:
Intersection type
text:
In type theory, an intersection type can be allocated to values that can be assigned both the type σ and the type τ. This value can be given the intersection type σ ∩ τ in an intersection type system.
Generally, if the ranges of values of two types overlap, then a value belonging to the intersection of the two ranges can be assigned the intersection type of these two types. Such a value can be safely passed as argument to functions expecting either of the two types.
For example, in Java the clas
brand slug:
wiki
category slug:
encyclopedia
description:
Concept in type theory
original url:
https://en.wikipedia.org/wiki/Intersection_type
date created:
2009-08-28T06:58:50Z
date modified:
2024-09-11T04:38:32Z
main entity:
{"identifier":"Q85769734","url":"https://www.wikidata.org/entity/Q85769734"}
image:
fields total:
13
integrity:
15