[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Is there any difference between `equal' and `string=' f
From: |
Drew Adams |
Subject: |
RE: [External] : Is there any difference between `equal' and `string=' for strings? |
Date: |
Thu, 19 Aug 2021 15:35:08 +0000 |
> Well, of course a string and a symbol can never be `equal', but they can
> be `string='. But what if both arguments are strings? The docstrings
> seem to imply that you can use `equal' and `string=' interchangeably and
> they will always give the exact same result. Is that correct?
If both args are strings those predicates always give the same result.
`equal' is not costly for simple things that can also
be compared with, say `eq' or `string='. It's costly
for things like complex list structure. But when you
need `equal' you need `equal'. ;-)
RE: [External] : Is there any difference between `equal' and `string=' for strings?,
Drew Adams <=
Re: this is United States calling (was: Re: [External] : Is there any difference between `equal' and `string=' for strings?), tomas, 2021/08/21
Re: this is United States calling (was: Re: [External] : Is there any difference between `equal' and `string=' for strings?), Emanuel Berg, 2021/08/21
Re: Is there any difference between `equal' and `string=' for strings?, Emanuel Berg, 2021/08/19