04 окт. 2014 г. 1:03 пользователь "Kalle Sommer Nielsen" <ka...@php.net>
написал:
>
> Hi
>
> 2014-10-03 22:00 GMT+02:00 Arvids Godjuks <arvids.godj...@gmail.com>:
> > Hello internals.
> >
> > I'm firmly against removing the "function" keyword. PHP is a dynamic
> > language, that means that even using the latest most functional IDE's
out
> > there, finding the implementation is not always few clicks away
(PhpStorm's
> > "Find Usages") and you need to do a search in the project. And the only
> > thing, that makes it fast and easy, is the "function" keyword, because
you
> > can do a search by "function nameISearchFor" and get a single hit.
> >
> > I'm not even mentioning the code readability...
>
> I highly doubt THAT many names properties or constants in paticular
> with the same name as a method, and honestly, is it that bad to get a
> few extra search results? I think that seems like a very thin argument
> against this.
>
> For readablity, the only situration I can think of that can create
> some fuzzy is something like this;
>
> abstract class A {
>  b();
> }
>
> Abstract class with a method and the visibility modifier omitted,
> looks like a function call inside a block of code but that is pretty
> much about it, but in a non example type of context, even that would
> add more readability to that fuzzy example:
>
> abstract class Driver {
>  connect($host, $username, $password, $database);
>  close();
> }
>
> Thats for saying, I'm not against removing it, but I'm not in hugely
> favor for doing so either, lets call that neutral.
>
>
>
> --
> regards,
>
> Kalle Sommer Nielsen
> ka...@php.net

I really have to ask, did you work with really big projects? Like really
sizeable.

Reply via email to