Re: dropping curly braces
| From: | Derick Rethans | Date: | Fri, 18 Nov 2005 08:14:22 +0000 |
| Subject: | Re: dropping curly braces | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20135@lists.php.net to get a copy of this message | ||
On Fri, 18 Nov 2005, Andreas Korthaus wrote:
> > If you go and grep through all the public code out there, pretty much none
> > of it uses {} for character offsets.
>
> That's the problem - also grep does not know if [] is used for arrays or
> stings. That's the same for programmers, it's often not easy to conclude from
> context - that's my point.
grep won't, but php -l will.
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org