Hacker News new | past | comments | ask | show | jobs | submit login

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.




This is untrue: 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).


Which 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.


Not 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: