Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zozbot234
· 3y ago · 0 comments
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.
Comments
[–]
queuebert
3y ago
Isn't #derive a syntactical sugar for a bare impl?