Hacker News new | past | comments | ask | show | jobs | submit login

Look at Nim's concept(http://nim-lang.org/docs/manual.html#generics-concepts), it can do more than a regular interface.

Edit: here is how they look like, concept vs interface:

1. Nim: http://ideone.com/wn3Kzf 2. Go: http://ideone.com/fRrB05




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: