Billion-Dollar Mistake in Go?by@lainio
2,951 reads

Billion-Dollar Mistake in Go?

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@lainio

Harri Lainio


Receive Stories from @lainio

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa