Hacker News new | ask | show | jobs
by fragmede 437 days ago
Haven't seen "1/21" as an answer yet
1 comments

An answer where? Not sure I follow
I just wanted to introduce "1/21" as an answer
Ahh I see the confusion now. I suggested it in the comment you were replying to:

> “1/2” concatenates with “1”

…and thought you’d spotted that and was saying others had disagreed with the concatenation way of handling + operators with strings.

"“1/2” concatenates with “1”" != "1/21"
That’s literally what concatenation is.
> Concatenate is a process of combining two or more strings into a single larger string. It's an important function in programming and computing because it allows you to store and combine multiple pieces of data when needed.

https://www.lenovo.com/us/en/glossary/concatenate/#:~:text=C...

That doesn't make those two strings equal, however.