MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxknvd4/?context=9999
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
41
Changelog
New features summary
13 u/Scroph Dec 02 '15 Integer division with intdiv()The new intdiv() function performs an integer division of its operands and returns it.Looks like they finally added intdiv() ! 3 u/[deleted] Dec 02 '15 Why? Performance? 1 u/minimim Dec 02 '15 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. 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
13
Integer division with intdiv()
The new intdiv() function performs an integer division of its operands and returns it.
Looks like they finally added intdiv() !
3 u/[deleted] Dec 02 '15 Why? Performance? 1 u/minimim Dec 02 '15 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. 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
3
Why? Performance?
1 u/minimim Dec 02 '15 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. 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
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. 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
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. 1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
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. 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.
1 u/minimim Dec 02 '15 You could trow in some kebab-case in there too, I know it exists.
You could trow in some kebab-case in there too, I know it exists.
41
u/aaptel Dec 02 '15
Changelog
New features summary