paint-brush
Billion-Dollar Mistake in Go?by@lainio
3,012 reads
3,012 reads

Billion-Dollar Mistake in Go?

by Harri Lainio5mSeptember 30th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The interface should set its semantics, not the implementer as a static type. The interface is not intuitive, complete, and idiomatic because of missing the error distinction. It exits too early when it returns data and together, which is allowed for allimplementers. There are many other examples in the standard library itself where callers of the ioReader interface misuse it. Go's standard library and especially its tests are tight to the requirements of the Go standard library. The language itself that you implement or misuse them should not need to be able to do it.

Coin Mentioned

Mention Thumbnail
featured image - Billion-Dollar Mistake in Go?
Harri Lainio HackerNoon profile picture
Harri Lainio

Harri Lainio

@lainio

Programmer

About @lainio
LEARN MORE ABOUT @LAINIO'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Harri Lainio HackerNoon profile picture
Harri Lainio@lainio
Programmer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite