[Web Feed] As the primary author of Python???s os.scandir function and PEP 471 (the origin...
Feed Supplier <[email protected]> Mon, 10 May 21 01:28:30 UTC
| Newsgroups | alt.comp.programming |
|---|---|
| Organization | Usenet.Farm |
| Message-ID | <[email protected]> |
..al proposal for scandir), I was very happy to see that Go is As the primary author of Python’s docs.python.org/3/library/os.html#os.scandir: os.scandir function and www.python.org/dev/peps/pep-0471/: PEP 471 (the original proposal for scandir ), I was very happy to see that Go is adding something similar in Go 1.16, which is coming out in late February 2021. In Go it will be called tip.golang.org/pkg/os/#ReadDir: os.ReadDir , and was github.com/golang/go/issues/41467: proposed last September. After more than 100 comments and several tweaks to the design, it was github.com/golang/go/commit/a4ede9f9a6254360d39d0f45aec133c355ac6b2a: committed by Russ Cox in October. A file system-agnostic version is also included in the new tip.golang.org/pkg/io/fs/: io/fs package as tip.golang.org/pkg/io/fs/#ReadDir: fs.ReadDir