Python packages often place convenience functions (e.g., factory methods) in __init__.py files.
There's nothing wrong with that. It would be great to be able to do something similar in PHP.
Sure beats creating classes called Util.
Thanks,
Michael
On Aug 31, 2013, at 2:57 PM, Vartolomei Nicolae <[email protected]> wrote:
> On Saturday, August 31, 2013 at 9:03 PM, Sebastian Krebs wrote:
>
>> I already _have_ create files for functions of a namespace... Closed source.
> Can we take a look at them as an example? Maybe we can give you some advice
> how to refactor this code :)
>
>> Not everything can be found in the 5 most popular frameworks.
> Sure, but best practices usually are found there.
>
>> The lack of logic is: Why is it actually missing?
> Why humans don’t have one leg more, on head?
>
> I really want to look at an example for this. Looks like you are the only one who needs this.
>
> Oh, is OOP that bad for you? Also constant autoloading looks so bad, I want to see an example
> of this too for sure.
>
> Please don’t consider these questions like you need to prove something to me,
> I’m asking them hoping that anwers will help all internals to understand problem you are
> trying to solve.
>
> kindly,
> nvartolomei
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>