Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
corysama
14y ago
0 comments
Save
Share
Roll-your-own prototypical inheritance. I also vaguely recall rolling my own approximation to class inheritance long ago.
0 comments
1 comments · 1 top-level
top
newest
oldest
jemfinch
14y ago
You can do that trivially with __*attr__ methods in Python. If you want something more structured, you can easily do it with a metaclass.
j
/
k
navigate · click thread line to collapse