Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41213 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54144 invoked from network); 17 Oct 2008 11:02:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 11:02:47 -0000 Authentication-Results: pb1.pair.com header.from=kenashkov@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kenashkov@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kenashkov@gmail.com X-Host-Fingerprint: 209.85.200.168 wf-out-1314.google.com Received: from [209.85.200.168] ([209.85.200.168:28651] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/B6-12818-5D078F84 for ; Fri, 17 Oct 2008 07:02:46 -0400 Received: by wf-out-1314.google.com with SMTP id 26so534041wfd.26 for ; Fri, 17 Oct 2008 04:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=TQpJ5Gn7qbPg21OLHZa/FyPCJgZc9INF/RBWhR3qcFc=; b=gpeLXwfG2m1AjxcBj78/SmtDdeglU9CVd1VcoeRBWdyJPpgy7ddgbQjwxGwRqJAGIg X/17U4GV7koPaZnCyeY3q8dI3o105G3px1Oo4SqisqB1BTf5WTaXBPeOcUhL1+1sWaTI wrbYLTY5VBUJ+Nsy9Q5cD74RU84hq7bHPFcE8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=bCN6dHLG4XZ41Wq0aTmL/8zksbi4684vMfdLFqShfQyZPnX4DTO/TH4qOCxLbrabOy Ru4D0pX47KTvE3FDxSQIEKJYm8Sf+2Czyd5YxG/5RJxPpYQaOXX2usEqkNvQKXMqniFZ RwU8JaI2mt163dRXDie82Qd0hLoI8P6XxHjl4= Received: by 10.142.107.5 with SMTP id f5mr1318373wfc.210.1224241362498; Fri, 17 Oct 2008 04:02:42 -0700 (PDT) Received: by 10.142.76.6 with HTTP; Fri, 17 Oct 2008 04:02:42 -0700 (PDT) Message-ID: <261daaa10810170402g1706ddffhcaeb56746382a279@mail.gmail.com> Date: Fri, 17 Oct 2008 14:02:42 +0300 To: nathan@kraya.co.uk Cc: internals@lists.php.net, steph@php.net In-Reply-To: <48F86EB4.5080308@kraya.co.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_84513_25492260.1224241362489" References: <48F86EB4.5080308@kraya.co.uk> Subject: Re: [PHP-DEV] UltraSimple Namespace Solution From: kenashkov@gmail.com ("Vesselin Kenashkov") ------=_Part_84513_25492260.1224241362489 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline AFAIK the classes and the namespaces both are case insensitive. This means a major change (to make them to be kept in a sensitive way) and will break the code that depends on the insensibility. IMHO - bad idea. And besides the casing usially is used to enforce good coding practices, not language features. On Fri, Oct 17, 2008 at 1:53 PM, Nathan Rixham wrote: > *The Problem (as defined by Greg):* > > foo.php: > namespace one::step; > function two(){} > > namespace one; > class step { > static function two(){} > } > ?> > > main.php: > include 'foo.php'; > // is this class one::step or namespace one::step? > one::step::two(); > ?> > > > *A Simpler Solution* > Force userland / general naming conventions in PHP. > > # namespaces are always lowercase > # functions are always lowercase > # classes are always CamelCaps with initial uppercase letter enforced > > thus: > //this is always the function two in namespace one::step > one::step::two(); > //this is always the method two of class step in namespace one > one::Step::two(); > > thoughts, opinions, reasons why it wouldn't work? > > regards, > > nathan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Vesselin Kenashkov developer at www.webstudiobulgaria.com ------=_Part_84513_25492260.1224241362489--