Actually, that is the beauty of the proposal. Colons are already allowed unquoted in a symbol. #My::Class is valid right now. In this proposal, the compiler knows *nothing* about namespaces. It just permits a colon in a global identifier. It's the only syntax change.
- Bert -
On Nov 28, 2006, at 23:30 , Klaus D. Witzel wrote:
Please consider an other character, other than the colon. Someone already made a mistake when inventing resend.thisAndThat so that the compiler (and the user) has to disambiguate the syntax, like in, example.doThisAndThat.
In Smalltalk colons belong to arguments and keywords, not to namespace expressions. Remember the white space problem with the minus sign / minus binary selector?
Besides of that, here's my +1
/Klaus
P.S. IMO it's overdue that · – — … and friends make their way into regular syntax diagrams and parsers,
List_of_XML_and_HTML_character_entity_references
On Tue, 28 Nov 2006 22:55:12 +0100, Bert Freudenberg wrote:
+1
- Bert -
On Nov 28, 2006, at 22:52 , Mikael Kindborg wrote:
Hi.
Göran gave a demo of the namespace system at a SWESUG meeting, and its was clean and easy to understand. You just name your classes as if you would have prefixed them, like this:
Prefix::ClassName
The tools hide the prefix unless it is needed to disambiguate a name. There is no need to use the namespace prefixes, the namespace system works fine together with the existing global namespace.
Would be a good idea to put this into the next release.
Best, Micke
On 11/21/06, Bert Freudenberg bert@freudenbergs.de wrote:
On Nov 21, 2006, at 17:32 , Aaron Reichow wrote:
Ahoy!
I know this might sound like a naive question... But why
haven't we
implemented namespaces yet? I'm sure there have been some attempts- but what is the status of namespaces in Squeak?
You can download the latest incarnation of Namespaces from Squeakmap
http://map.squeak.org/package/f88f4752-c4a5-42bf-a613-
f7d2a4f48cff
There has been a lot of discussion, but I think most agree now that this is such a simple approach that it might be worth adopting. There is a presentation somewhere explaining it, I'm sure Göran will dig it out if nobody beats him to it.
- Bert -