Y
Hacker News
new
|
ask
|
show
|
jobs
by
Rapzid
4257 days ago
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! :|
1 comments
jiggy2011
4257 days ago
PHP5 has real type hinting in the language, so you don't need to write any more than you would in Java.
link
TazeTSchnitzel
4257 days ago
And soon it'll even have return typing, should that RFC pass.
link
Rapzid
4257 days ago
phpdoc handles much more than just typing function parameters.
link
debaserab2
4257 days ago
By far the most common usage is parameters and return values. Even moreso than comments.
link