News for hackers. Stuff that matters.
Re:Is Go Duck-Typed? by masklinn on Thursday March 05, 2020 @03:24AM (#22491874)
That’s a different issue. This is not just using structural interfaces but downcasting to even lower interfaces without warning. That is, the method lies about what it’s looking for.
Re:Is Go Duck-Typed? by apta on Saturday March 07, 2020 @01:58PM (#22513304)
It will cause issues if a type implements the interface where it didn't mean to.