Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I'm implementing a Lisp

Name: Anonymous 2011-12-24 23:32

Discuss how the perfect module/namespace should behave.  Keep in mind things like multimethods (which should be merge rather than shadow).

Name: Anonymous 2011-12-25 1:46

>>7

yeah, I guess I wasn't thinking about about the external environment. I was only thinking about managing tons of names. If namespaces are the only feature provided, then the transformation could be done at compile time. At run time, it would look like there were 1000 functions with 1000 distinct names, but when you are writing the code, you can encapsulate certain names so you don't need to worry about collisions across the project.

You were talking about how instance methods or member functions or whatever the relevant word is is aware of names of the member variables in the "this" object? As well as static fields in the this class? Yeah, I don't place too much value on this feature. I prefer explicitly passing in the this object, and referring to the member variables like this->way.It makes it more obvious what you are referring to and helps with reading.

>>8

yeah, and it would make multimethods incredibly confusing. It's bad enough with the object-contains-the-function model.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List