On Thu, Apr 4, 2013 at 11:15 AM, Max Semenik <maxsem.w...@gmail.com> wrote:
> On 04.04.2013, 16:04 Tyler wrote:
>
>> I still fully maintain that entirely static classes is the most useless
>> thing and is just an extremely crude method of hiding global context. We're
>> using PHP 5.3 in the core, might as well just use namespaces at that point,
>> because that's what a static class is: a namespace with global variables
>> and functions. It entirely defeats the purpose of object oriented
>> programming.
>
> There's a difference: static classes can have private variables,
> allowing to hide implementation.
>

And variables inside a global function are also scoped, so they
don't leak implementation either. The point is semi-valid for
functions, though.

-Chad

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to