[go-nuts] Re: [generics] bring contracts back

2020-06-17 Thread Denis Cheremisov
oops, an infitie loop in the As implementation, now the right one: https://go2goplay.golang.org/p/5NnZBnmIC96 среда, 17 июня 2020 г., 21:55:52 UTC+3 пользователь Denis Cheremisov написал: > > There's an advantage though, for rather narrow cases though: reuse of > interfaces: > > https://go2gopl

[go-nuts] Re: [generics] bring contracts back

2020-06-17 Thread Denis Cheremisov
There's an advantage though, for rather narrow cases though: reuse of interfaces: https://go2goplay.golang.org/p/HJr3QIzgQuX среда, 17 июня 2020 г., 19:58:08 UTC+3 пользователь Denis Cheremisov написал: > > IMO a groups of constraints are horrible with interfaces > > type CommonResponse(type E)