Also, you contradicted yourself just then and there. Not a single of your examples does string concatenation for these types. It’s only JS
- 0 Posts
- 14 Comments
C# is filthy. But it explains where you got your warped idea of righteousness.
You are entitled to your opinion. implicit conversion to string is not a feature in most languages for good reasons.
I don’t think there’s a way to retrofit JS - but php versions are deprecated all the time. Why not do the same with client-side script versions? :)
Why would you need an entirely different way of concatenating strings? “11” + 1 -> exception. “11” + to_string(1) = “111”
Executing after undefined behavior is arguably worse than terminating with an exception. A terminated script can’t leak data or wreak havoc in other ways.
Thanks for saving me the typing.
Nor would I expect “1312” to equal “1213”… Still that operator with these operands should just throw an exception
BS. A language shouldn’t have operators that allow non sensical operations like string concatenation when one operand is not a string.
raspberriesareyummy@lemmy.worldto Ask Lemmy@lemmy.world•If the internet didn't exist, do you think you would've have the same political ideology, religion/philosophy, and the overall worldview on life?1·5 days agoDefinitely. I never changed it since before using the internet, “categorical imperative”: treat others as you would have them treat you. What changed with the internet? I realized that more people than I thought even in my most pessimistic moments are sociopaths. Conservatives are actually all emotionally retarded, some need therapy, some need prison to protect decent human beings from them.
raspberriesareyummy@lemmy.worldto Ask Lemmy@lemmy.world•You are about to depart on a vacation when someone in your group suddenly freaks out and claims to have saw a vision of the vehicle crashing/exploding and everyone dying, would you believe them?9·6 days agoif it’s Boeing, I ain’t going ;) (Modern Boeings only, the older ones pre 737-Max8 are kinda safe)
raspberriesareyummy@lemmy.worldto Mildly Infuriating@lemmy.world•Every news result on duckduckgo links to MSNEnglish11·6 days agoI don’t use any services that make me identifiable to search engines, I use ublock origin, I occasionally delete all my browsing history + cookies, and of course I’d never watch porn winkwink I’d say any corporation/entity outside the ISP would at the very least have a hard time tracking my porn preferences ;)
raspberriesareyummy@lemmy.worldto Mildly Infuriating@lemmy.world•Every news result on duckduckgo links to MSNEnglish31·7 days agoDo you really want your porn search results linked to your credit card + name? oO
Read the thread again, it seems you slipped somewhere. This was all about the claim that implicit conversion to string somehow could make sense.