[Top][All Lists]

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

Re: [PATCH] wrong description of string-rindex

From: Ian Price
Subject: Re: [PATCH] wrong description of string-rindex
Date: Tue, 10 Sep 2013 11:49:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Nala Ginrut <address@hidden> writes:

> - Scheme Procedure: string-rindex s char_pred [start [end]]
>      Search through the string S from right to left, returning the index
>      of the last occurrence of a character which
> ------
> It's actually 'first occurrence', according to the activity of function.
> And it's nonsense for 'last occurrence' since string-index does the same
> work.
I'm going to be honest, I don't think either of these are particularly
great wordings. They are both misleading in different ways, I feel.
Rather than 'first' or 'last', it would be better to use 'leftmost' and 

Ian Price --

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"

reply via email to

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