Re: string-match and string-looking-at

On Sunday 29 August 2010 04:26:43 Matthew Love wrote:
> I've noticed that 'string-match and 'string-looking-at both
> return an error when one of the input strings is '(). 'string=
> will return '() in such cases.

That is because string= is defined only as an alias for equal.
> It seems it would be better for 'string-match and 'string-looking-at
> to also return '() if one of the input "strings" is not actually a
> string, as in such cases the strings do not technically match.

I think it would be better for all three functions to report type errors 
as errors.

	Timo Korvola		<URL:>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]