• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Namespaces (FSOCLF)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Namespaces (FSOCLF)


  • Subject: Re: Namespaces (FSOCLF)
  • From: Lars Sonchocky-Helldorf <email@hidden>
  • Date: Wed, 31 Dec 2003 20:34:31 +0100

Am Mittwoch, 31.12.03 um 19:51 Uhr schrieb Marcel Weiher:

On 31 Dec 2003, at 17:04, Alexander Malmberg wrote:

"Nat!" wrote:
[snip]
A problem is 3) the quick hacks, where classes are called Foo or Person
or MyTextView :)

But this is a social problem (lack of naming discipline), so your
technical solution won't work. Instead of 10 global classes called Foo,
you'll get 10 classes called Foo in a namespace called MyNamespace. :)

Precisely!

The only way you can avoid conflicts is with a registry (or some other method that *ensures* uniqueness). It does not make a difference if the registry registers namespaces or prefixes.

Something like this already exists (not very sophisticated yet but a start):

http://wiki.gnustep.org/index.php/PrefixIndex



Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
objc-language mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/objc-language
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: People who develop with MySQL and/or other GPL based code
  • Next by Date: Re: NSBrowser binding
  • Previous by thread: Re: NSBrowser binding
  • Next by thread: Missing Man Pages?
  • Index(es):
    • Date
    • Thread