Timeline for How can we compare two strings?
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22, 2020 at 18:00 | history | tweeted | twitter.com/StackMma/status/1241786850987200529 | ||
Mar 22, 2020 at 3:57 | comment | added | liang | or ">". The point is to expand the built-in operator's capability, depending on its operands type. So the common built-in operator is reused, not to invent more and more custom operators. | |
Mar 22, 2020 at 3:44 | comment | added | liang | True, symbols should be too, since "atoms" consists of numbers, strings, and symbols. In fact, that's what a lot of programming language is capable of: operator overloading. I wonder is if Mathematica can do the same thing, to overload "+" to expand its behavior from numbers only. | |
Mar 22, 2020 at 3:36 | comment | added | Αλέξανδρος Ζεγγ | If strings should be comparable in the way of numbers, just because both of them are "atoms", so should symbols. Maybe this question should be forwarded to Wolfram himself :). | |
Mar 22, 2020 at 3:26 | comment | added | liang | Number and string are both "atoms" in the language, so why are they treated differently in this case? Just because one is taught in primary school, and the other is not? Just wondering if there's a deeper reason for that. It seems odd a programming language would depend its design on school curriculum, rather than its own construct. | |
S Mar 21, 2020 at 20:43 | history | suggested | Peter Mortensen | CC BY-SA 4.0 |
Copy edited (e.g. ref. <https://en.wikipedia.org/wiki/Python_%28programming_language%29>). Fixed the question formation - missing auxiliary (or helping) verb - see e.g. <https://www.youtube.com/watch?v=t4yWEt0OSpg&t=1m49s> (see also <https://www.youtube.com/watch?v=kS5NfSzXfrI> (QUASM)).
|
Mar 21, 2020 at 20:14 | review | Suggested edits | |||
S Mar 21, 2020 at 20:43 | |||||
Mar 21, 2020 at 16:38 | history | became hot network question | |||
Mar 21, 2020 at 13:44 | comment | added | Αλέξανδρος Ζεγγ | With due respect, comparison of two numbers is common sense taught as early as in primary mathematics, but that of strings is not. | |
Mar 21, 2020 at 9:55 | history | edited | J. M.'s missing motivation♦ |
edited tags
|
|
Mar 21, 2020 at 9:09 | comment | added | liang |
But 1>2 works, there's also no indication of what is comparing two numbers.
|
|
Mar 21, 2020 at 8:57 | comment | added | Αλέξανδρος Ζεγγ | Just from the question description, I can not figure out what is comparing two strings. | |
Mar 21, 2020 at 8:57 | history | edited | kirma | CC BY-SA 4.0 |
added 4 characters in body; edited title
|
Mar 21, 2020 at 8:56 | history | edited | Αλέξανδρος Ζεγγ | CC BY-SA 4.0 |
added 2 characters in body
|
Mar 21, 2020 at 8:41 | vote | accept | liang | ||
Mar 21, 2020 at 8:27 | answer | added | Szabolcs | timeline score: 13 | |
Mar 21, 2020 at 8:24 | history | asked | liang | CC BY-SA 4.0 |