Description
In July, @robpike and I posted a draft design for file system interfaces. That doc links to a video, prototype code, and a Reddit discussion.
The feedback on that design has been almost entirely positive.
A few people raised concerns about the use of optional interfaces, but those are an established pattern in Go that we understand how to use well (informed in part by some earlier mistakes, such as optional interface like http.Hijacker with methods that cannot return an error to signal failure/unavailability).
A few people suggested radical redesigns of the os.File
interface itself, but for better or worse installed base and the weight of history cautions against such drastic changes.
I propose to adopt the file system interfaces draft design for Go 1.16.
Activity