<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Type_inference</id>
	<title>Type inference - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Type_inference"/>
	<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Type_inference&amp;action=history"/>
	<updated>2026-05-19T02:45:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://coderwiki.org/index.php?title=Type_inference&amp;diff=98&amp;oldid=prev</id>
		<title>Dylan: new: info, example</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Type_inference&amp;diff=98&amp;oldid=prev"/>
		<updated>2025-08-14T21:37:19Z</updated>

		<summary type="html">&lt;p&gt;new: info, example&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some [[Programming language|programming languages]] can &amp;#039;&amp;#039;&amp;#039;infer&amp;#039;&amp;#039;&amp;#039; the [[data type]] of a [[variable]] based on the [[value]] that was assigned to the [[variable]].&lt;br /&gt;
&lt;br /&gt;
Importantly, this &amp;#039;&amp;#039;&amp;#039;does not&amp;#039;&amp;#039;&amp;#039; mean the value is &amp;#039;&amp;#039;&amp;#039;untyped&amp;#039;&amp;#039;&amp;#039; (like in [[dynamic typing]]), just that we don&amp;#039;t need to specify the type because the [[compiler]] or [[interpreter]] can &amp;#039;guess&amp;#039; the type.&lt;br /&gt;
&lt;br /&gt;
== Example of type inference ==&lt;br /&gt;
Below is an example of type inference in the [[Rust]] programming language. The two code snippets below are equivalent:&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let x = 17;&lt;br /&gt;
let x: i32 = 17;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Many other [[Programming language|programming languages]] have this features, such as [[C]] with its &amp;#039;[[C auto|auto]]&amp;#039; [[keyword]].&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
</feed>