Re: With End With

From: Date: Thu, 11 Dec 2003 01:31:20 +0000
Subject: Re: With End With
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-6346@lists.php.net to get a copy of this message
Derek Ford wrote:
This is highly unusual.... I recently started gathering people who could implement and opinions of those who wanted or didn't want a 'with' construct. http://www.phpfreaks.com/forums/topic11451.php I toyed with the idea, and then when I went into core to implement it, I became _very_ confused and discovered I just wasn't good enough . yup, i like the construct, i saw your forum, i would prefer to have some syntax indication that your method or prop call is part of the object block though, which is unlike javascripts implemtation, something like..
with($obj) { .property = ''; .method(); } i know that php already uses the '->' syntax, but as was already posted, that is hideously ugly Jason

« previous php.internals (#6346) next »