[Top][All Lists]

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

Re: [Chicken-hackers] substring

From: felix . winkelmann
Subject: Re: [Chicken-hackers] substring
Date: Fri, 26 Aug 2016 16:47:11 +0200

> Out of curiosity: any example where substring=? would be useful in
> practice?

Grep the egg repo, you will find some uses. But generally speaking, it's
somewhat difficult to come up with a metric of usefulness - the danger
being (as always) being blinded by our own limited experience.

Having a substring comparison is somwhat orthogonal to substring extraction
and not having to allocate an intermediate string just to compare (say) two
fields may save some bytes. Not necessarily in all implementations, but in
a sufficiently smart one...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]