It's only bad if you abuse it. If used properly it allows you to create more user friendly interface and avoid bloat. The implementation may be harder to understand so it's sometimes a trade off, but many people appreciate features that allow to write less verbose and more dynamic code.
Karol O'BRIEN, Steven X wrote: > > > Guys, > > The use of __call on php classes feels like it should be bad practise to > me. Am I missing something? > > A few thoughts... > > #1 won't __Call be called every time any method is called on the object? > This feels inefficient. > > #2 It hides functionality. To remember what extra methods exist and their > parameters you have to specifically look up the __call function or go to > the source code. > > > Steven O'Brien > > -- View this message in context: http://www.nabble.com/__call-tp20457496p20457745.html Sent from the Zend Framework mailing list archive at Nabble.com.
