News for hackers. Stuff that matters.
Re:How to Use Go Interfaces by catnaroek on Tuesday March 20, 2018 @03:46AM (#16626633)
> Abstract data types are designed specifically for data structures like queues and stacks

Guess what all nontrivial programs manipulate in the end.

> objects that don’t have such well defined invariants

... are either stateless or useless. It is impossible to define useful algorithms that manipulate objects of which you cannot say anything.

> No major language has adopted them for that reason.

The real reason is “programmers cannot reason about invariants anyway”.

There are no comments on this comment yet.