Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47659 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30446 invoked from network); 27 Mar 2010 16:57:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2010 16:57:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@stefan-marr.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@stefan-marr.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain stefan-marr.de from 85.88.12.247 cause and error) X-PHP-List-Original-Sender: php@stefan-marr.de X-Host-Fingerprint: 85.88.12.247 toolslave.net Received: from [85.88.12.247] ([85.88.12.247:41806] helo=uhweb12247.united-hoster.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/C1-22155-6093EAB4 for ; Sat, 27 Mar 2010 11:57:43 -0500 Received: from cust194-138.dsl.as47377.net ([62.166.194.138] helo=[192.168.0.16]) by uhweb12247.united-hoster.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1NvZKJ-00038w-Cd; Sat, 27 Mar 2010 17:57:38 +0100 Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <4BAE34BE.8080409@divbyzero.net> Date: Sat, 27 Mar 2010 17:57:30 +0100 Cc: Toorion , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <3909ECA6-0BBB-4DC1-A206-DC58FD7BE658@stefan-marr.de> References: <4BAE30F7.5090004@divbyzero.net> <73954AEC-89FA-4552-81DD-2B4E019B5DD4@stefan-marr.de> <4BAE34BE.8080409@divbyzero.net> To: Martin Jansen X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] Proposal: shorthand object property setting syntax. From: php@stefan-marr.de (Stefan Marr) >> However, the proposal reminds me of Pascal's 'with'-construct: >>=20 >> new(pointertob); >>=20 >> with pointertob^ do >> begin >> a :=3D 10; >> b :=3D 'A'; >> c :=3D nil >> end; >=20 > Can one do something like "b :=3D this.a"? This sounds like a huge = can of > worms to me. Ehm, I don't see what might be problematic with "b :=3D this.a". However, I did not mean to propose it, I just thought I mention it. Think there was also a similar discussion (with respect to something = similar to 'with') a while back. But since PHP requires you to write your '$this->' everywhere, such a = construct does not feel very much inline with this rest of the language = which is explicit. Back to the original proposal, from my point of view, source code is = meant to be read, and repetition is handled easily by the human brain, a = bit of alignment with whitespace and voil=E0... =20 Best regards Stefan >=20 > - Martin >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 --=20 Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525