Try Less

Try Less

Something that I’ve encountered more and more as I have moved from academic research to enterprise software is densely filled try blocks. I think that this tendency comes from a good place:

Internals of PHP 5 & 7 arrays.

Internals of PHP 5 & 7 arrays.

In the documentation for PHP 7 there is a small note that Internal array pointers are not implemented in PHP 7’s foreach. As someone who has built iterable classes in PHP before this sent me on a puzzling adventure on how the internal of foreach works in a broad sense but also the implications of what this means for compatibility between PHP 5 and PHP 7.