Re: export & public
- Posted by jeremy (admin) Dec 04, 2008
- 1327 views
...
Key word "up" means "one level UP to user of the library".
Key word "and_up" means "one or more levels UP to user of the library".
Just try to explain your "export" and "public" to EU new comer, and you will come to these short formulas above (but after reading pages and pages of docs and discussions).
Um, "up" and "and_up" are two very, very confusing words to me and I've explored many programming languages. "export" and "public" are very common programming words and are very easily explained to anyone, a Eu newbie or veteran. export = make the item visible to it's parent (i.e. the opposite of import) and only to it's parent, no matter what it's parent thinks should be done with it. public = make it available to it's parent and allow it's parent to do with it whatever it thinks is necessary, after all it is usable to the general public.
I guess I would be open to a different word for public and or export but we thought long and hard before making that choice. up and and_up are not better choices. If we come up with better choices, I would be up for more conversation on the subject.
Jeremy