Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Traits implement interface inheritance, yes. #derive has nothing to do with derived classes in OOP, it's an annotation-like facility that adds auto-generated code to any object.


Isn't #derive a syntactical sugar for a bare impl?




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

Search: