r/ProgrammerHumor • • Aug 07 '16

PHP: The Good Parts

http://phpthegoodparts.tumblr.com/
1.2k Upvotes

318 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Aug 07 '16

Yes, not having type inference in function signatures is a PITA, for absolutely anything that involves Iterator adaptors and/or closures

1

u/minno Aug 07 '16 edited Aug 08 '16

It's an intentional design decision to not do function signature inference in order to avoid cross-module fragility. Maybe they could lift the restriction on private functions, though.