2 ms·
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
by hnlmorg 2y ago
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.
- fragmede 2y ago"“1/2” concatenates with “1”" != "1/21"
- hnlmorg 2y agoThat’s literally what concatenation is.
- fragmede 2y ago> 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=Concatenate%20is%20a%20process%20of,pieces%20of%20data%20when%20needed. https://www.lenovo.com/us/en/glossary/concatenate/#:~:text=C... That doesn't make those two strings equal, however.
- hnlmorg 2y agoIm not using the term in any weird way here. JavaScript even has a function specifically called “concat” and the ‘cat’ utility in UNIX is short for “concatenation” You can try string concatenation in 3 differently languages using the links below: https://www.w3schools.com/python/python_strings_concatenate.asp https://www.w3schools.com/python/python_strings_concatenate.... https://go.dev/play/p/Q5VPF2ANk7Y https://go.dev/play/p/Q5VPF2ANk7Y https://www.w3schools.com/jsref/jsref_concat_string.asp https://www.w3schools.com/jsref/jsref_concat_string.asp Edit: who said anything about making both side of the operator equal? That’s not how operators work.