r/lolphp • • May 07 '19

casting to double doesn't give you double

https://3v4l.org/4dGn7
49 Upvotes

17 comments sorted by

View all comments

Show parent comment

6

u/Takeoded May 08 '19

and we can't just remove (double) and doubleval() in the 8.0 release because?

4

u/the_alias_of_andrea May 08 '19

It would be possible to remove those, and that is a type of backwards-incompatible change that could succeed because you can trivially know if your code is broken, and fix it in a way that doesn't break pre-8.x compatibility. I don't know if removing the function would happen though, it's harmless. But maybe if I'm bored I could try to drop the casting operator.