goby-lang / goby

Goby - Yet another programming language written in Go
MIT License
3.49k stars 171 forks source link

Class inheritance chart #116

Closed hachi8833 closed 7 years ago

hachi8833 commented 7 years ago

Created a class inheritance chart of goby.

170526_2351_28uhvu

I'm just wondering if this is correct, and how to add this to your README.

st0012 commented 7 years ago

Well it's not that correct. Class class is all classes' class. In other words, all classes are Class's instance. And the inheritance tree is actually very simple: Every built in classes (includes standard lib like file) inherits ObjectClass, and also is an instance of Class

st0012 commented 7 years ago

But drawing an inheritance chart is a very good idea, thanks!

hachi8833 commented 7 years ago

Thank you for the checking! I'd be glad if you edit the chart for documentation.