In regards to the braces or no braces question, I have a scenario that I would like to share that could be considered similar in nature. We use a cluster of databases where I work, and to make things easier on us, we have a method called setSource() to switch between the clusters in our database class. This allows us to easily query between the clusters, but since there are no braces, we sometimes lose track of which cluster we are working on, and thus bugs are born. I would think that if it were some how possible to have braces, it would cause less headaches and problems, because we could then logically group our queries together. The same argument could be used with namespaces; especially _if_ the multiple namespace-per-file gets added. Even without that little bit of functionality, it would make maintaining namespaced code easier to read at first glance. For small apps, it probably wouldn't be that big of a difference, but for files that span hundreds (and even thousands) of lines of code, a developer could easily get lost in in the namespace they are supposed to be in. Am I in a namespace? Which namespace? Without the code block, and typical indentation, you could easily overlook the namespace keyword.
Anyways, I understand that braces are just a bit of icing on the cake -- so to speak -- but I just wanted to give a probable real-life situation to this debate. :) On Dec 7, 2007 11:16 AM, Lokrain <[EMAIL PROTECTED]> wrote: > Hello all, > > I just wanted to drop an opp. Just to see the logic, when we have > programming structure class, interface, function, if statement, switch > statement etc, we have bracers encapsulation. This is the logic that most > programming language give to show a programmer that something is inside > something. We here have namespace with the same idea, and no bracers. > > Conclusion: namespaces are not logical => no thanks > > PS. By the way, I do not think that any workarounds on that logic will not > be nice. > -- It looked like something resembling white marble, which was probably what it was: something resembling white marble. -- Douglas Adams, "The Hitchhikers Guide to the Galaxy"