> 
> Hello all,
> 
> Sjamaan and Mario on the channel brought up an interesting issue with
> substring=?. The current semantics check only to the length of the
> shorter string, so:
> 
> (and (substring=? "foo" "foobar") (substring=? "foobar" "foo")) => #t
> 
> 
> I submit that this behaviour is conceptually broken.
> 

It depends on the point of view. SRFI-13 does (according to my reading)
perform string comparison only on the given range (string=). The 
MIT Scheme docs don't go into specifics, other's I couldn't find right now.

> 
> substring is an instance of a subset operation, and
> 

A string is an ordered collection, not a set.


felix


_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to