]> Cypherpunks repositories - gostls13.git/commitdiff
Language FAQ: editing tweaks after iant.
authorRob Pike <r@golang.org>
Wed, 7 Apr 2010 23:13:14 +0000 (16:13 -0700)
committerRob Pike <r@golang.org>
Wed, 7 Apr 2010 23:13:14 +0000 (16:13 -0700)
R=iant
CC=golang-dev
https://golang.org/cl/874043

doc/go_lang_faq.html

index 2fd71936ba2be6d84a6434a683b23bfa41489e44..b8deb15343f22a04603a5b596e2b6f9901b9a761 100644 (file)
@@ -282,14 +282,14 @@ This remains an open issue.
 <h3 id="exceptions">
 Why does Go not have exceptions?</h3>
 <p>
-We believe that coupling the usual idea of exceptions to a control
+We believe that coupling exceptions to a control
 structure, as in the <code>try-catch-finally</code> idiom, results in
 convoluted code.  It also tends to encourage programmers to label
 too many ordinary errors, such as failing to open a file, as
-exceptional.  And then the type system gets mixed in.
+exceptional.
 </p>
 <p>
-Go takes a different approach.  Instead of exceptions, it has couple
+Go takes a different approach.  Instead of exceptions, it has couple
 of built-in functions to signal and recover from truly exceptional
 conditions.  The recovery mechanism is executed only as part of a
 function's state being torn down after an error, which is sufficient