Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66288 invoked from network); 10 Aug 2010 21:41:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2010 21:41:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:36172] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/23-61991-D87C16C4 for ; Tue, 10 Aug 2010 17:41:34 -0400 Received: by fxm14 with SMTP id 14so1114336fxm.29 for ; Tue, 10 Aug 2010 14:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=4mdNTnH39BJBCHB/oz6NyKdV+/qJVEz89XFoWpPsA4g=; b=xuhleyVP6Yj9OPlN4RGoAfyoWkFYtXysXUObqUxUx2ZMLvzg5a4TihA6CKd0PRdLiZ xnb7T0BMjAU1xGeImM7it3LW6e/OfFAct9M10T9lSHZVOwhvAWtvlOjNpS7Vh30/Kz92 IK4UAacje+CY7LP6exgtvNHoGWmt0p3vLxWds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=CEq+UNky6VbT+Ci05qFFyDeAXmwXUR+ett8SX2mUhAdkjFs2FlJ4RhtQg/b6eeLijM pjIozsw7VdD4jfiiYuc0gy634ldM1clm42hEgdmAI2R3ATS2QyMsodFvo6L0dh6l+/u3 1z5pQayzsr6bg5eyoX6BxUo7XNKH67NYYFufg= MIME-Version: 1.0 Received: by 10.223.113.12 with SMTP id y12mr18926088fap.36.1281476491115; Tue, 10 Aug 2010 14:41:31 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.223.64.145 with HTTP; Tue, 10 Aug 2010 14:41:31 -0700 (PDT) In-Reply-To: <4C61AEEC.4030307@mohiva.com> References: <4C61AEEC.4030307@mohiva.com> Date: Tue, 10 Aug 2010 23:41:31 +0200 X-Google-Sender-Auth: IeHXeDa0qh38adDouwe-4_1s8Pg Message-ID: To: Christian Kaps Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Namespace separator constant From: kalle@php.net (Kalle Sommer Nielsen) Hello Christian 2010/8/10 Christian Kaps : > =A0Hi, > > is there any reason why no namespace separator constant exists in PHP. I > have many cases where I concatenate strings to a namespace. This ends up > with many class constants like const NS_SEPARATOR =3D '\\'. A default PHP > constant would be a better way to handle such cases There is no reason to add such a constant for language level features, if you REALLY such a feature then a define() call is all you need: define('NS_CONSTANT', '\\'); I do not see a reason to add such a thing just because the separator is a backslash which most people belive is a escape character in all cases outside string interpolation. --=20 regards, Kalle Sommer Nielsen kalle@php.net