Namespaces, Lummox? in BYOND Discussion
|
|
There has been a discussion about namespaces in DM, and the usage of parent_type. Since Lummox is currently the primary developer of the BYOND engine/language, and presumably has respectable experience with the relevant languages, I would appreciate his input on these matters.
|
Essentially the best DM library developers already operate this way, by sticking as much as they can into a datum and avoiding too many globals. Datums are an effective way of using all the benefits of namespaces, so I don't think adding namespaces internally would be of much benefit.
There also is the question of scope resolution I suppose, but it doesn't come up enough in DM to be an issue. It also means getting into deep layers of the compiler.