Add article about Type tunnel
Closed this issue · 3 comments
petk commented
Description of Type tunnel design pattern and how to use it in PHP:
https://github.com/wwphp-fb/php-resources/blob/master/articles/oop/design-patterns/type-tunnel.md
Golpha commented
don't shoot the sherrif, but.. a type tunnel in a lazy typed language is obsolete ( no matter what happens with php 7 - strict type support does not decouple lazy typed mechanisms ).
In case of PHP type tunnels also have side effects that does compensate the benefits by 100%.
Do not see this as a veto against this new content, just as something that should be considered before adding stuff to a collection that may be read / used by beginners that should ( normally ) have access to regular / widely used - bullet proof - design patterns.