# With End With

- Thread: https://externals.io/message/6348
- Original archive: https://news-web.php.net/php.internals/6348
- Started by jason davidson on 2003-12-11T03:36:12+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6348 — jason davidson — 2003-12-11T03:36:12+00:00

URL: https://externals.io/message/6348#6348

If someone could help me find the discusions on the topic,  i would 
greatly appreciate it.  I searched and have not found anything yet.  Or 
if someone could explain why the idea was rejected.
Thanks
jason

---

## #6349 — Alan Knowles — 2003-12-11T04:27:30+00:00

URL: https://externals.io/message/6348#6349 · In reply to: #6348

for the life of me I cant remember the date of it, (or even find it on 
google/zend.com/marc.theaimsgroup... etc.)

from what i remember, it had a number of flaws.

a) ambiguaty of the source of a variable or method, (as it was 
originally illustrated as poluting the local variable namespace)

b) the same (or similar) result,  could easily be done using aliases,
eg.
$a = &$this->xxx->yyyy
$a->doThis();

rather than

with ($this->xxx->yyy) {
	doThis();
}

Regards
Alan



jason davidson wrote:
> If someone could help me find the discusions on the topic,  i would 
> greatly appreciate it.  I searched and have not found anything yet.  Or 
> if someone could explain why the idea was rejected.
> Thanks
> jason
> 
> 


-- 
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com

---

## #6350 — jason davidson — 2003-12-11T04:53:53+00:00

URL: https://externals.io/message/6348#6350 · In reply to: #6349

Alan Knowles wrote:

> for the life of me I cant remember the date of it, (or even find it on 
> google/zend.com/marc.theaimsgroup... etc.)
>
> from what i remember, it had a number of flaws.
>
> a) ambiguaty of the source of a variable or method, (as it was 
> originally illustrated as poluting the local variable namespace)
>
> b) the same (or similar) result,  could easily be done using aliases,
> eg.
> $a = &$this->xxx->yyyy
> $a->doThis();
>
> rather than
>
> with ($this->xxx->yyy) {
>     doThis();
> }
>
> Regards
> Alan
>
>
>
> jason davidson wrote:
>
> > […]
>
>
Regarding being able to produce the same result with current constucts, 
there is no argument, your right, im not at all implying its a necassary 
construct, regarding ambiguity, it is well implemented in other 
languages without problem.
