Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(332)

Unified Diff: doc/devel/weekly.html

Issue 5297062: code review 5297062: weekly.2011-10-25.1 (new rune type) (Closed)
Patch Set: diff -r 8ed86d2166d2 https://go.googlecode.com/hg/ Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .hgtags ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc/devel/weekly.html
===================================================================
--- a/doc/devel/weekly.html
+++ b/doc/devel/weekly.html
@@ -14,6 +14,26 @@
hg update weekly.<i>YYYY-MM-DD</i>
</pre>
+<h2 id="2011-10-26">2011-10-26 (new rune type)</h2>
+
+<pre>
+This snapshot introduces the rune type, an alias for int that
+should be used for Unicode code points.
+
+A future release of Go (after Go 1) will change rune to be an
+alias for int32 instead of int. Using rune consistently is the way
+to make your code build both before and after this change.
+
+To test your code for rune safety, you can rebuild the Go tree with
+
+ GOEXPERIMENT=rune32 ./all.bash
+
+which builds a compiler in which rune is an alias for int32 instead of int.
+
+Also, run govet on your code to identify methods that might need to have their
+signatures updated.
+</pre>
+
<h2 id="2011-10-25">2011-10-25</h2>
<pre>
« no previous file with comments | « .hgtags ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b