Everyone strongly discourages the use "using namespace" since the objects from tens used namespaces can clashes, well then to make short namespace names we can use aliases, but would they clash like prefixes?  <div>

<br><div><div><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 9:52 PM, Owen Shepherd <span dir="ltr"><<a href="mailto:owen.shepherd@e43.eu">owen.shepherd@e43.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 10 Nov 2010, at 19:23, Ariel V Feinerman wrote:<br>
<br>
</div><div class="im">> I think prefixes are more beautiful than namespaces (by the way they are simple for runtime support ;-). There is no diversity between NSSet or NS::Set, excepting one or more unnecessary letters, so why? The namespaces do not increase the culture, then if prefixes can conflict so namespaces can likewise.<br>


<br>
</div>Objective-C at present doesn't give you a choice. Your namespace must be short, or else be very cumbersome to use. Hence, everyone uses 2 character prefixes (or 3 at most), which are prone to clashes.<br>
<br>
On the other hand, if namespaces were supported, it is likely that NSObject would be called something along the lines of Foundation::Object, and other libraries would also use longer namespace names. This would not make programs any longer due to features such as "using namespace" and/or namespace aliases (e.g. something along the lines of C++0x's "using NS = Foundation", or even "using F = Foundation") and the ability to import entities from one namespace into another (e.g. "using Foundation::Object").<br>


<br></blockquote><div>My and your code will be incompatible if we choose NS, N, or something instead of Foundation:: We increase issues and look how we can  eliminate them.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


Namespaces give us the ability to have longer entity names, without the inconvenience this would normally cause.<br>
<div><div></div><div class="h5"><br>
-- Owen Shepherd<br>
<a href="http://www.owenshepherd.net/" target="_blank">http://www.owenshepherd.net/</a><br>
<a href="mailto:owen.shepherd@e43.eu">owen.shepherd@e43.eu</a> (general) / <a href="mailto:oshepherd1@shef.ac.uk">oshepherd1@shef.ac.uk</a> (university)<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>best regards<br>Ariel<br>
</div></div></div>