Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Next Step for Generics. Parent comment
Your playground example didn't try to pass a UserID to a function accepting a PostID, but if you do that, you'll see the error:
https://play.golang.org/p/vyiJ_sLzy4O
There are no comments on this comment yet.
Your playground example didn't try to pass a UserID to a function accepting a PostID, but if you do that, you'll see the error:
https://play.golang.org/p/vyiJ_sLzy4O