Tijnema skrev:

Since JavaScript (or ECMAScript) doesn't have namespaces, people that
hear the name namespace for php will either don't know what it is, or
think that it's the same as the C implementation.

ECMAScript 3 aka JavaScript 1.x does not have NS.

ECMAScript 4 aka JavaScript 2 will have NS.

Why do I think that most newbies - for whom the naem we use care the most! - will not come from C++, C#, Java or anything else. Because having taught PHP to newbies for quite some time now I clearly see that PHP is their first or second language, and the other one is JS.

"I wan to make a web page" Off to learn HTML and (in a good world standards and CSS)

"I want to have a contact form/discussion board/news/blog" Tada! Enter PHP!

"I want some cool animation". Enter JavaScript.

In a good world they will be taught secure PHP programming, unobtrusive DOM-scripting, etc. Mostly they won't, but the name "namespace" makes a lot more sense in trying to explain the purpose, and would make my job easier.

Lars Gunther

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to