From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Price Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] wrong description of string-rindex Date: Tue, 10 Sep 2013 11:49:30 +0100 Message-ID: <87zjrllznp.fsf@Kagami.home> References: <1378801326.4642.20.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378810183 29823 80.91.229.3 (10 Sep 2013 10:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 10:49:43 +0000 (UTC) Cc: guile-devel@gnu.org To: Nala Ginrut Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 10 12:49:47 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJLVy-00048q-R8 for guile-devel@m.gmane.org; Tue, 10 Sep 2013 12:49:46 +0200 Original-Received: from localhost ([::1]:56929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLVy-00065U-4Q for guile-devel@m.gmane.org; Tue, 10 Sep 2013 06:49:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLVq-00065I-QL for guile-devel@gnu.org; Tue, 10 Sep 2013 06:49:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJLVm-00007D-Ni for guile-devel@gnu.org; Tue, 10 Sep 2013 06:49:38 -0400 Original-Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:59298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLVm-000076-GJ for guile-devel@gnu.org; Tue, 10 Sep 2013 06:49:34 -0400 Original-Received: by mail-wg0-f46.google.com with SMTP id k14so6275008wgh.1 for ; Tue, 10 Sep 2013 03:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=i7kDojiaHRH68+Tnqt6Ut/dz9/gJd2XbnzPCCcWLFtQ=; b=qSnh85ZG/dynPNHDuTSi4bEF592EEBbAoWsoeeG/3cnaGAXxe3uluKimQDri6O4psE VPjtTxY/R3rwBp3c3gOM4lyK/Z1lRwoRobp3lUT+Z9VMOG61Wev2GXVGAt5pNQdGeZYh oGy7t0ZkoDwLOgOAm7jYP7jWyKV+3ZAXu7CUhClQKzXTMacgF5huGqgLXU1omdupCjGr qRvOEcVnjMRnbO5Dakz8rHs67PA9M2mQg17FeN76OuPmREbY92e7+5LLo1vyIJ2FT5bE GobYw3KFP2QK1r7ZJbeezv59T1eaPj+YFwBusU9Z/feY5JdUIg/4FdiC8V/Cpx4T8fMZ 297g== X-Received: by 10.194.175.133 with SMTP id ca5mr16611755wjc.19.1378810173623; Tue, 10 Sep 2013 03:49:33 -0700 (PDT) Original-Received: from Kagami.home (host109-157-170-145.range109-157.btcentralplus.com. [109.157.170.145]) by mx.google.com with ESMTPSA id r6sm2641145wiw.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 03:49:32 -0700 (PDT) Mail-Followup-To: Nala Ginrut , guile-devel@gnu.org In-Reply-To: <1378801326.4642.20.camel@Renee-desktop.suse> (Nala Ginrut's message of "Tue, 10 Sep 2013 16:22:06 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16627 Archived-At: Nala Ginrut 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 'rightmost' -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"