Re:“Did you mean?” Experience in Ruby
by Rapzid on Thursday October 23, 2014 @04:20AM
(#8497172)
Which becomes ironic because you end up writing way more text into the file for phpdoc then you would have if it were a static language to begin with; and you end up treating the variables as static type anyway! :|
[ Parent
| on HN ]
PHP5 has real type hinting in the language, so you don't need to write any more than you would in Java.
Re:“Did you mean?” Experience in Ruby
by TazeTSchnitzel on Thursday October 23, 2014 @09:30AM
(#8497978)
And soon it'll even have return typing, should that RFC pass.
phpdoc handles much more than just typing function parameters.
Re:“Did you mean?” Experience in Ruby
by debaserab2 on Thursday October 23, 2014 @09:49AM
(#8498070)
By far the most common usage is parameters and return values. Even moreso than comments.