by maerF0x0 · 5y ago · 0 comments
Go (golang)
Using defer to unlock locks can lead to some fun deadlocks if you don't realize the issue with the scope, and it's completely unintuitive to someone with experience with other implementations of similar concepts.
the whole var/:=/= assignment combined with the error handling style and the shorthand is another one
Don't understand your second point.
select {
case <-ch1:
case <-ch2:
}