Re: Re: namespace separator ideas

From: Date: Sat, 26 Nov 2005 21:39:27 +0000
Subject: Re: Re: namespace separator ideas
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-20592@lists.php.net to get a copy of this message
Hi Mat, Matt Friedman wrote:
Hi, I've been following your conversations all day and think I might have a nice idea for the namespace separator idea. Sorry to barge in on your conversation but I think the following has value. What about something like <- or <:: or even just <: It makes sense to me because a namespace is akin to a parent of the class and in a diagram I would use an arrow to point to the parent from the child. At least there is some type of parent <- child relation. examples: Namespace <:: ClassName or Namespace <- ClassName or Namespace <: ClassName Unless I'm missing something these symbols should not conflict with other ones. They also have more a PHP "feel".
Hmm, "<:" doesn't look bad to me. I'd like to somehow conduct a poll to see what most prefer (it would be great if we could add polls on php.net). So far, I have these possibilites: ::: :> <:: <- <:
This is the most semantically pleasing for me and it mirrors a common convention and represents the actual relationship. In the language it is nice when the symbols have an appearance representative of the actual relationship. When I see \ I think of ugly Windoze file paths. Also ::: seems awkward somehow. Matt.
Yeah, I feel the same way for "\". ":::" seems OK to me, but of course, I want to put what the majority prefer. Regards, Jessie

« previous php.internals (#20592) next »