Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20722 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36992 invoked by uid 1010); 28 Nov 2005 14:23:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36976 invoked from network); 28 Nov 2005 14:23:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2005 14:23:26 -0000 X-Host-Fingerprint: 160.9.128.17 dns2.lmu.ac.uk Received: from ([160.9.128.17:24232] helo=mrelay-b.lmu.ac.uk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4B/1B-21657-DD21B834 for ; Mon, 28 Nov 2005 09:23:25 -0500 Received: from localhost.lmu.ac.uk ([127.0.0.1] helo=localhost) by mrelay-b.lmu.ac.uk with esmtp (Exim 4.43) id 1Egjpw-0002yT-HZ for internals@lists.php.net; Mon, 28 Nov 2005 14:18:32 +0000 Received: from mrelay-b.lmu.ac.uk ([127.0.0.1]) by localhost (mrelay-b [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11193-01 for ; Mon, 28 Nov 2005 14:18:29 +0000 (GMT) Received: from leedsmet-exch1.leedsmet.ac.uk ([160.9.35.117]) by mrelay-b.lmu.ac.uk with esmtp (Exim 4.43) id 1Egjoc-0002vQ-BD for internals@lists.php.net; Mon, 28 Nov 2005 14:17:10 +0000 x-mimeole: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Nov 2005 14:17:46 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] namespace separator poll, update Thread-Index: AcX0AO9XNi43gFg3QIGPc9r8sg+mzwAItTnQ To: X-Virus-Scanned: by McAfee at Leeds Metropolitan University Subject: RE: [PHP-DEV] namespace separator poll, update From: M.Ford@leedsmet.ac.uk ("Ford, Mike") On 28 November 2005 09:50, Stanislav Malyshev wrote: > > > BUT the discussion is not only about possibility but also about > > > what you would like. The ":" for example would work if mandatory > > > whitespace would be introduced for the ternary BUT this is very > > > very bad.=20 >=20 > If my vote is counted (not that I asked for it :) then I vote against > all funky syntax, present and future. :: is only thing that is > obvious and somehow connected to the world of PHP as we know it now. Wow! I go home early on a Friday, and come back to a veritable php-dev flo= od in my Inbox! That must be the most active weekend since I started readin= g the list!! My point of view is similar to Stanislav's: any operator chosen should have= some echo of existing syntax -- this rules out the original suggestion of = \ and many of the suggested alternatives. I'm also completely against any = solution that introduces new enforced whitespace, however unlikely the cons= truct -- that just doesn't seem like "the PHP way". The two existing "class to member" operators are :: and ->, so I'd be looki= ng at analogues of these. I'm not keen on :: itself performing double-duty= here, and I hate ::: and most of the repeated-character suggestions (%%, .= ., **, etc.) -- especially as the single-character versions all have comple= tely unrelated meanings. This leaves me looking for something not dissimilar to ->. It's a shame th= at =3D> is already taken, as that would have done nicely. :> (or ::>), des= pite their smiley-ness, are actually quite clever suggestions, containing e= choes of both :: and -> -- I'd be ok with either of these. Another possibi= lity I haven't seen offered, and that has strong echoes of ->, is ~>. I ca= n't see any conflicts here, it's sufficiently similar to be obviously relat= ed, but sufficiently different to be easily distinguished. What do people think? (Space for flame here...) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211=20 To view the terms under which this email is distributed, please go to http:= //disclaimer.leedsmet.ac.uk/email.htm