From 680211145fb0a720505eead0b9334451b8466916 Mon Sep 17 00:00:00 2001 From: lukechampine Date: Sun, 3 Apr 2016 13:54:52 -0400 Subject: better pointer documentation --- stm.go | 1 + 1 file changed, 1 insertion(+) (limited to 'stm.go') diff --git a/stm.go b/stm.go index cb745a1..fc4a125 100644 --- a/stm.go +++ b/stm.go @@ -74,6 +74,7 @@ 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! */ package stm -- cgit v1.2.3