aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorChris Wendt <chrismwendt@gmail.com>2022-06-08 03:15:50 -0600
committerChris Wendt <chrismwendt@gmail.com>2022-06-08 03:15:50 -0600
commitea580b2c20a5e26e68c8f1d111bbe3adfb3e54d9 (patch)
tree341f334699460675b20bb8f8587d4610762175aa /doc.go
parentremove unused varSnapshot (diff)
downloadstm-ea580b2c20a5e26e68c8f1d111bbe3adfb3e54d9.tar.gz
stm-ea580b2c20a5e26e68c8f1d111bbe3adfb3e54d9.tar.xz
update README
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc.go b/doc.go
index 748af80..c704c33 100644
--- a/doc.go
+++ b/doc.go
@@ -69,11 +69,9 @@ behavior. One common way to get around this is to build up a list of impure
operations inside the transaction, and then perform them after the transaction
completes.
-The stm API tries to mimic that of Haskell's Control.Concurrent.STM, but this
-is not entirely possible due to Go's type system; we are forced to use
-interface{} and type assertions. Furthermore, Haskell can enforce at compile
-time that STM variables are not modified outside the STM monad. This is not
-possible in Go, so be especially careful when using pointers in your STM code.
-Remember: modifying a pointer is a side effect!
+The stm API tries to mimic that of Haskell's Control.Concurrent.STM, but
+Haskell can enforce at compile time that STM variables are not modified outside
+the STM monad. This is not possible in Go, so be especially careful when using
+pointers in your STM code. Remember: modifying a pointer is a side effect!
*/
package stm