]> Cypherpunks repositories - gostls13.git/commitdiff
weekly.2011-10-26 (new rune type) weekly.2011-10-26
authorAndrew Gerrand <adg@golang.org>
Wed, 26 Oct 2011 05:47:38 +0000 (14:47 +0900)
committerAndrew Gerrand <adg@golang.org>
Wed, 26 Oct 2011 05:47:38 +0000 (14:47 +0900)
R=rsc
CC=golang-dev
https://golang.org/cl/5297062

.hgtags
doc/devel/weekly.html

diff --git a/.hgtags b/.hgtags
index eb20fd9e9d9b83c8bba925deff7b2b6ed1b8beba..8a8ca9d177ec7da6be26601104ce7ee14b5de3fe 100644 (file)
--- a/.hgtags
+++ b/.hgtags
@@ -89,4 +89,3 @@ c1702f36df0397c19fc333571a771666029aa37e release
 acaddf1cea75c059d19b20dbef35b20fb3f38954 release.r58.2
 6d7136d74b656ba6e1194853a9486375005227ef weekly.2011-10-18
 941b8015061a0f6480954821dd589c60dfe35ed1 weekly.2011-10-25
-941b8015061a0f6480954821dd589c60dfe35ed1 weekly
index 0b291346f0969738f499d95aefe2d7cb4ef10167..2eb49751874b2a980943c0b2982fc2c79a8e3c32 100644 (file)
@@ -14,6 +14,26 @@ hg pull
 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>