3 ms·
I liked developing in php. But, the language itself is horrible. It COULD have been good, though. Like if(1 == "0.999") which iirc evaluates to true.
by aliswe 6y ago
I liked developing in php. But, the language itself is horrible. It COULD have been good, though.
Like if(1 == "0.999") which iirc evaluates to true.
- Master_Odin 6y agoThis is untrue: https://3v4l.org/PLcj1 https://3v4l.org/PLcj1 I mean, if you stick enough 9s, it'll probably become true, but that's true in most languages (ignoring the implicit type coercion, but if you don't want that, then use ===, same as JS).
- ragnese 6y agoWhich part of that offends you? The string conversion or the floating point math? Because floating point math is evil in almost all languages, because they all follow IEEE and because some numbers can't be represented in binary.
- aliswe 6y agoNot the string conversion or the rounding, it's both of them combined that makes me unsecure my revolver. That's a joke... Seriously, I look back at my PHP years with mostly great joy. Even though the language is terrible I hardly ever noticed it when practising it.