<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Type_variable</id>
	<title>Type variable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Type_variable"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Type_variable&amp;action=history"/>
	<updated>2026-04-09T07:01:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Type_variable&amp;diff=184113&amp;oldid=prev</id>
		<title>imported&gt;Jlwoodwa: Added {{Unreferenced}} tag</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Type_variable&amp;diff=184113&amp;oldid=prev"/>
		<updated>2025-01-08T00:28:03Z</updated>

		<summary type="html">&lt;p&gt;Added {{&lt;a href=&quot;/index.php/Template:Unreferenced&quot; title=&quot;Template:Unreferenced&quot;&gt;Unreferenced&lt;/a&gt;}} tag&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Unreferenced|date=January 2025}}&lt;br /&gt;
In [[type theory]] and [[programming language]]s, a &amp;#039;&amp;#039;&amp;#039;type variable&amp;#039;&amp;#039;&amp;#039; is a [[Variable_(mathematics)|mathematical variable]] ranging over [[data types|types]]. Even in programming languages that allow [[variable (programming)|mutable variable]]s, a type variable remains an abstraction, in the sense that it does not correspond to some memory locations.&lt;br /&gt;
&lt;br /&gt;
[[Programming language]]s that support [[parametric polymorphism]] make use of [[universally quantified]] type variables. Languages that support [[existential type]]s make use of [[existentially quantified]] type variables. For example, the following [[OCaml]] code defines a polymorphic [[identity function]] that has a universally quantified type, which is printed by the interpreter on the second line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ocaml&amp;quot;&amp;gt;&lt;br /&gt;
# let id x = x;;&lt;br /&gt;
val id : &amp;#039;a -&amp;gt; &amp;#039;a = &amp;lt;fun&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In mathematical notation, the type of the function &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; is &amp;lt;math&amp;gt;\forall a.a \to a&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is a type variable.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[System F]] &lt;br /&gt;
&lt;br /&gt;
{{type-theory-stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Type theory]]&lt;br /&gt;
[[Category:Functional programming]]&lt;br /&gt;
[[Category:Dependently typed programming]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Jlwoodwa</name></author>
	</entry>
</feed>