On Thu, Jun 4, 2009 at 8:20 AM, Matthew Weier O'Phinney <matthew@zend.com> wrote:
> Matthew Weier O'Phinney wrote:
While I understand where you're coming from, this is also a matter of
what development environment you use. In Vim, I get autocompletion for
any property or method call I've previously used. Eclipse, on the other
hand, will give you no feedback (currently). I personally feel we need a
PHP docblock standard for enumerating method and property overloading,
and for IDEs to honor this in order to provide code assist.
Supposedly you can do this in eclipse...I never tried but read this comment. http://codeutopia.net/blog/2009/02/28/creating-a-simple-abstract-model-to-reduce-boilerplate-code/#comment-27653
I know it can also should be able to be done in netbeans using the vdoc template http://blogs.sun.com/netbeansphp/entry/defining_a_variable_type_in
This is not just an issue with magic methods...its also an issue with an method that can return more than one datatype, or with factory methods possibly.
没有评论:
发表评论