What is the current state of namespaces in Squeak? Is there a programming convention to prevent name clashes?
Thanks.
Hello Pinku,
PS> What is the current state of namespaces in Squeak? Is there a PS> programming convention to prevent name clashes?
many discussions in the past, see the archives of squeak-dev, one proposal from Göran Krampe (SqueakMap package loader, namespaces), work in progress from Michael van der Gulik as part of his work on a secure Squeak (project secure Squeak on Squeaksource).
Otherwise everybody either has his own conventions or the names just don't overlap.
For the time being, just add a suffix to all your classes, group them in packages and pray anybody use the same sufixes/package names :)
On Wed, Apr 30, 2008 at 6:53 AM, Pinku Surana suranap@gmail.com wrote:
What is the current state of namespaces in Squeak? Is there a programming convention to prevent name clashes?
Thanks.
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Prefixes are much more common. Actually, I have never seen anybody use suffixes.
- Bert -
On 30.04.2008, at 17:18, Miguel Cobá wrote:
For the time being, just add a suffix to all your classes, group them in packages and pray anybody use the same sufixes/package names :)
On Wed, Apr 30, 2008 at 6:53 AM, Pinku Surana suranap@gmail.com wrote: What is the current state of namespaces in Squeak? Is there a programming convention to prevent name clashes?
Thanks.
I apologize, I meant prefixes and not suffixes.
Miguel Cobá
On Wed, Apr 30, 2008 at 10:26 AM, Bert Freudenberg bert@freudenbergs.de wrote:
Prefixes are much more common. Actually, I have never seen anybody use suffixes.
- Bert -
On 30.04.2008, at 17:18, Miguel Cobá wrote:
For the time being, just add a suffix to all your classes, group them in
packages and pray anybody use the same sufixes/package names :)
On Wed, Apr 30, 2008 at 6:53 AM, Pinku Surana suranap@gmail.com wrote: What is the current state of namespaces in Squeak? Is there a programming convention to prevent name clashes?
Thanks.
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
On Wed, Apr 30, 2008 at 12:53 PM, Pinku Surana suranap@gmail.com wrote:
What is the current state of namespaces in Squeak? Is there a programming convention to prevent name clashes?
There's a manually maintained list at http://wiki.squeak.org/squeak/3318 that may be helpful.
On Wed, Apr 30, 2008 at 11:53 PM, Pinku Surana suranap@gmail.com wrote:
What is the current state of namespaces in Squeak? Is there a programming convention to prevent name clashes?
Sorry for the slow reply. I haven't been on this list much lately.
I'm actively developing a "proper" Namespaces solution that runs on Squeak; the tools currently work although they're pretty rough, and I'm currently writing tests and fixing bugs. See http://gulik.pbwiki.com/Namespaces and http://gulik.pbwiki.com/Packages for more info.
Why do you ask?
Gulik.
beginners@lists.squeakfoundation.org