←back to thread

131 points apta | 1 comments | | HN request time: 1.129s | source
Show context
zzzcpan ◴[] No.9266616[source]
Author's examples are really exaggerated, but there is definitely some truth. Bufio and flag packages are not that good. And "idiomatic" Go is full of poor abstractions. More often than not it feels like some things are written by OO programmers and are unnecessary hard. Like people don't know there are function literals in Go and they are free to abstract away state changes, instead of creating objects and spreading them all over the place.
replies(2): >>9268870 #>>9279040 #
1. rogpeppe1 ◴[] No.9268870[source]
I'd like to hear more details of your issues here. What's not good about the bufio package? What do you mean by "poor abstractions"? What's wrong with creating a single purpose local type rather than using a function literal?