Archive for December, 2015

December 9, 2015 | In: Programovanie

php7 Anonymous Classes

Anonymous Classes It is exactly what it says, but when can it be useful? Ever found your self refactoring a pile of shit like the following code? [crayon-5c13d1529f8ca950562307/] and then wherever you look you see casting it back to...

A bit weird and unintuitive coalesce behaviour, so watch out when using it! [crayon-5c13d152a00af707851899/] so it seems that it works only for null :/ [crayon-5c13d152a00b9385756818/] so the only valid and straight forward example comes from...