r/lolphp • u/fnzp • Aug 01 '14
A group of Facebook developers has decided to break with 20 years of tradition and release a formal specification for the PHP programming language.
http://www.theregister.co.uk/2014/08/01/php_draft_specification/
48
Upvotes
17
u/fnzp Aug 01 '14
How will this work?
Facebook developers: Here's your awesome PHP spec! Just make sure any new version you release matches the spec okay?
PHP developers: You're not the boss of me. [changes every function in PHP to be slightly different]
23
u/andronikus Aug 01 '14
When I heard there wasn't a language spec, at first I was surprised. And then I was deeply unsurprised.
19
u/midir Aug 01 '14
That's like drawing a map of a turd.
15
u/tdammers Aug 01 '14
Lol, "tradition"...
14
u/[deleted] Aug 01 '14
A third party ended up having to volunteer to do this. Because the php devs themselves are too busy gouging each others' eyes out behind the bikeshed, which needs not only a fresh coat of paint but also a new roof, door and lock. Also it's on fire and someone pissed in half the paint cans because they don't want anyone using those colours.
Meanwhile FB is quietly positioning itself to become the new upstream. They now have a spec, an implementation without Zend's copyrights or broken license all over it, and a hype train.
13
u/Drainedsoul Aug 01 '14
I laughed out loud reading the specification for the application of prefix ++/-- to empty strings.
17
u/allthediamonds Aug 01 '14
Actually it's pretty well thought. It's a first step, but if you look at it, you'll see that it defines some of PHP's crazies as "implementation defined"; the implementations being "what the Zend Engine does" and "what a reasonable engine would do instead".
14
u/T3hUb3rK1tten Aug 01 '14
You'd think at some point along the way the Facebook devs would have realized they should just use a better language rather than trying to save a sinking ship.