Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
wvenable
12y ago
0 comments
Save
Share
PHP is based on C. It's way more consistent with C, Java, C# , etc to do the former. So the real question is why
function foobar() : int { .. }
instead of
function int foobar() { .. }
0 comments
2 comments · 2 top-level
top
newest
oldest
amenghra
12y ago
1. function foobar() makes it easier to grep for. 2. if I recall correctly, it made some parts of the grammar easier.
1 more reply
wambotron
12y ago
Yeah, you could go either way on it really. It seems weird to mix them, though!
j
/
k
navigate · click thread line to collapse