On 09.10.2007 10:57, Alexey Zakhlestin wrote: >> How come? >> It looks like you're reading $bar[':5'], but forgot the quotes. >> On the other side, what could be easier than a function call? > > operator is definitely easier because it lets us reuse the same syntax > for strings and arrays (and people would need to learn one operator > instead of 2 functions and 2 different concatenation operators)
Yes, I see this quite often in the list: "let's invent a new thing instead of an old thing, that would make peoples' life easier". But you forget that both the old and the new thing would co-exist and people would have to learn BOTH, which definitely doesn't make any life easier. >> > And if we were concerned that concerned about duplicate >> > functionality, we probably wouldn't have SimpleXML and similar things. >> >> Mistakes done in the past do not mean we should continue to do them in the >> future. > > simplexml is a mistake? :-/ No, I don't think SimpleXML in particular is a mistake, but encouraging people to do mistakes just because they've done it in the past is quite.. unreasonable. That said, why are we still discussing this? >From what I understood, most of the core developers agreed that there are no reasons to implement this syntax, so we're just wasting our time and traffic here. -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php