"bufio package" tongue in cheek

Below is “bufio” package documentation, mentioning about “io.Reader object” and I was under impression that there are no objects in go-lang :slight_smile:

1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Package bufio implements buffered I/O. It wraps an io.Reader or io.Writer
6 // object, creating another object (Reader or Writer) that also implements
7 // the interface but provides buffering and some help for textual I/O.

I think “object” here is perfectly clear. Some alternative like “interface-implementing type instance” sounds like unnecessary language lawyering to me.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.