News for hackers. Stuff that matters.
Re:Things you should know about PHP 7 by tne on Thursday March 26, 2015 @10:31AM (#9269849)
AFAICT both Haxe and AS3 consistently put types on the right, including argument declarations. Other languages consistently put it on the left. Most languages make a choice like that; PHP mixes things up a bit.

But then, it wouldn't be PHP if it was too consistent ;).

Re:Things you should know about PHP 7 by TazeTSchnitzel on Thursday March 26, 2015 @10:54AM (#9270028)
To be fair, it's not the same as an argument type. The type of `foo()` isn't int, it's function. You're not specifying the type of the thing itself, merely the type of what it returns. Though this seems to have been lost on the creators of C. ;)