Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zozbot234
on Jan 8, 2023
|
parent
|
context
|
favorite
| on:
OOP in C
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.
queuebert
on Jan 8, 2023
[–]
Isn't #derive a syntactical sugar for a bare impl?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: