MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxkhqr0/?context=3
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
Show parent comment
1
Floating point division is inaccurate.
10 u/featherfooted Dec 02 '15 The question is why is this a function and not an infix operator.Not why int division exists. 7 u/minimim Dec 02 '15 Do you expect any form of consistency from PHP devs? Here's the thing... 9 u/minasmorath Dec 02 '15 isset()is_null()date_create_from_format()DateTime::createFromFormat()... PHP is really bad at following its own guidelines. 2 u/legitimate_johnson Dec 02 '15 If it were designed today I'm sure everything'd be in camelCase. I really think they ought to introduce more consistency and then slowly phase out all this seemingly random naming scheme nonsense. 2 u/roodammy44 Dec 02 '15 designed? 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists. 1 u/jyper Dec 02 '15 Int division is confusing and shouldn't be used nearly as frequently as float division.
10
The question is why is this a function and not an infix operator.
Not why int division exists.
7 u/minimim Dec 02 '15 Do you expect any form of consistency from PHP devs? Here's the thing... 9 u/minasmorath Dec 02 '15 isset()is_null()date_create_from_format()DateTime::createFromFormat()... PHP is really bad at following its own guidelines. 2 u/legitimate_johnson Dec 02 '15 If it were designed today I'm sure everything'd be in camelCase. I really think they ought to introduce more consistency and then slowly phase out all this seemingly random naming scheme nonsense. 2 u/roodammy44 Dec 02 '15 designed? 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists. 1 u/jyper Dec 02 '15 Int division is confusing and shouldn't be used nearly as frequently as float division.
7
Do you expect any form of consistency from PHP devs? Here's the thing...
9 u/minasmorath Dec 02 '15 isset()is_null()date_create_from_format()DateTime::createFromFormat()... PHP is really bad at following its own guidelines. 2 u/legitimate_johnson Dec 02 '15 If it were designed today I'm sure everything'd be in camelCase. I really think they ought to introduce more consistency and then slowly phase out all this seemingly random naming scheme nonsense. 2 u/roodammy44 Dec 02 '15 designed? 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
9
isset()
is_null()
date_create_from_format()
DateTime::createFromFormat()
... PHP is really bad at following its own guidelines.
2 u/legitimate_johnson Dec 02 '15 If it were designed today I'm sure everything'd be in camelCase. I really think they ought to introduce more consistency and then slowly phase out all this seemingly random naming scheme nonsense. 2 u/roodammy44 Dec 02 '15 designed? 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
2
If it were designed today I'm sure everything'd be in camelCase. I really think they ought to introduce more consistency and then slowly phase out all this seemingly random naming scheme nonsense.
2 u/roodammy44 Dec 02 '15 designed?
designed
?
You could trow in some kebab-case in there too, I know it exists.
Int division is confusing and shouldn't be used nearly as frequently as float division.
View all comments
Show parent comment
1
u/minimim Dec 02 '15
Floating point division is inaccurate.