News for hackers. Stuff that matters.
Re:PHP7 Gains Scalar Type Hints by AlexMax on Monday March 16, 2015 @07:17PM (#9215169)
> I haven't had a use for this yet, but I'm always amazed by how PHP manages to move forward without breaking BC.

This. If I were a Python developer (of the language itself), I would be paying very close attention to how PHP has handled deprecation and breaking changes.

Re:PHP7 Gains Scalar Type Hints by Latty on Tuesday March 17, 2015 @08:40AM (#9217480)
Really? I see it as the exact opposite. Sure, Python added some pain from 2-3. They did so to fix the main flaws in the language and remove deprecated stuff. The language is now far better and the cost has mostly been paid. The alternative is the PHP approach where everything hangs around for ever, and everyone is using deprecated stuff, everything is named weirdly and lots of extra gunk has to be shoved in to try and make it work in a sane way because "we didn't want to break anything".

I understand why some people prefer that, and why it's the way most languages go (Java does the same thing, just with way less movement in general compared to PHP), but it means that the language gets worse over time. Eventually, if you don't do that breaking change, the language will get replaced by something that doesn't need all the cludge.

Re:PHP7 Gains Scalar Type Hints by TazeTSchnitzel on Monday March 16, 2015 @07:18PM (#9215173)
There's been an effort with PHP 7 to try and avoid a Python 2/3-style situation. The PHP 5 to 7 jump should be much smaller than from 4 to 5.
Re:PHP7 Gains Scalar Type Hints by Danack on Monday March 16, 2015 @09:12PM (#9215680)
>The PHP 5 to 7 jump should be much smaller than from 4 to 5.

And also the jump from 5.4+ to 7 is probably smaller than the jump from 5.2 to 5.3.

Although I think the PHP project does need to support versions for longer, the adoption rate of 7 is going to be quite rapid due to the low barrier of doing it, and the massive performance and language gains.

Re:PHP7 Gains Scalar Type Hints by ChikkaChiChi on Tuesday March 17, 2015 @12:11PM (#9218934)
Python 2 -> 3 did not have the luxury that PHP did with 4 -> 5. Python still worked, whereas PHP 4 was running around with its hair on fire screaming for a fire extinguisher that was PHP 5.

Bad analogy, but the point is that Python still worked for most people so the upgrade process was slow.

I think Go is going to have issues similar to Python when they make the jump to 2.0. The devs are already on record saying that BC will break.

Re:PHP7 Gains Scalar Type Hints by imakesnowflakes on Monday March 16, 2015 @11:25PM (#9216107)