4 ms·
I don't know about productivity, if you look at the side-by-side comparisons, the savings are generally one or two lines at most. There's nothing in there that
by Gigablah 13y ago
I don't know about productivity, if you look at the side-by-side comparisons, the savings are generally one or two lines at most.
There's nothing in there that actually helps with the idiosyncrasies of PHP -- for example, returning a sane default when accessing nonexistent array elements.
Also, PHP 5.4 already has the JS-style array notation.
And I really have to wonder about the enforced breaks in their implementation of switch/case, because there are times when you do want to fall through to the next case.
- lukeholder 13y agoIts too early to judge that it makes no improvements, because it does not claim to yet! It currently is only slightly reducing the weight of the code - it doesn't even support classes yet! I am sure if it matured, you would start to identify way in which it could improve PHP by hiding PHP gotchyas, and doing all the boilerplate to get around them.