goby-lang / goby

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

Embedded module support #88

Closed hachi8833 closed 7 years ago

hachi8833 commented 7 years ago

(Related to #66)

It'd be very nice if embedded module is supported in Goby.

In Ruby, most fundamental methods like Object or Kernel are implemented as module: perhaps to simplify the implementations of such basic classes.

st0012 commented 7 years ago

@hachi8833 Do you mean extract some methods into modules and included them by default?

hachi8833 commented 7 years ago

Thank you for the reply. I don't mean that in principle. I recognize that Goby is not equal to Ruby. I'd just be glad if embedded modules can be included in Goby's classes in official way.

Goby is growing very fast and I guess embedded modules would help keep class hierarchy in order.

st0012 commented 7 years ago

@hachi8833 This sounds interesting but currently I don't have time do to this. Are you willing to give it a try?

hachi8833 commented 7 years ago

I would if I could now ;-) But I'm reading your code and feel impressive, well ordered. (I'm not a fast coder but I'm afraid I could contribute for documentation)

I appreciate your excellent work!

st0012 commented 7 years ago

Thanks 😄 Take your time and I'm looking forward to see you PR 😁

hachi8833 commented 7 years ago

I close the issue for now.