Re: Namespace issues

From: Date: Mon, 20 Oct 2008 21:37:42 +0000
Subject: Re: Namespace issues
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-41292@lists.php.net to get a copy of this message
Ólafur Waage wrote:
On an icelandic keyboard "\" is AltGr + (key right of 0 in the top row), just an fyi if you guys wanted to know. For my two cents. "\" looks like its not supposed to be there. Is there no other combination of two simbols that would work? Like >> or +> or ** or .. or something in that fashion ? Ólafur Waage 2008/10/20 Steph Fox <steph@php.net>:
The "german keyboard" issue isn't really one. {}[] are in the same "class" of characters (alt-Gr + number-row). So, as a programmer, you either have to live with that anyway because there's no avoiding {}[], or you switch to the us layout while programming (which quite a few people do).
Also useful to know :) - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Well, I'd usually parse \ as either escape, or, coming from Perl, a reference. But nothing tells me it's even related to namespaces. If I had to choose, I'd say either use ::: to make sure I'm talking about the global func, or...and I don't know if this even makes sense, but don't allow registering functions in standard/ as function names (eg. function strlen in a namespace). But that doesn't really work since those functions change often. Consistency in symbols is pretty important from my point of view, which is why saying -> for static things is confusing, and using \ to mean "outside namespacing" is weird too. ::: is already used for namespacing, so it'd make sense. As info, in a Spanish keyboard it's the same, Alt Gr+{the key to the left of the 1}. - Federico Lebron

« previous php.internals (#41292) next »