From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Shinn Newsgroups: gmane.lisp.guile.devel Subject: Re: Why not support (begin), (cond), (case-lambda), etc? Date: Fri, 6 Jan 2012 21:38:30 +0900 Message-ID: References: <871urdd593.fsf@netris.org> <87obuhbey2.fsf@netris.org> <87k455b6l2.fsf@netris.org> <87fwftxbi5.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325853526 22559 80.91.229.12 (6 Jan 2012 12:38:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2012 12:38:46 +0000 (UTC) Cc: guile-devel@gnu.org To: David Kastrup Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jan 06 13:38:42 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rj94A-0007kN-NO for guile-devel@m.gmane.org; Fri, 06 Jan 2012 13:38:38 +0100 Original-Received: from localhost ([::1]:47753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj94A-0003jw-9q for guile-devel@m.gmane.org; Fri, 06 Jan 2012 07:38:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj946-0003eE-Ro for guile-devel@gnu.org; Fri, 06 Jan 2012 07:38:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rj945-000060-Va for guile-devel@gnu.org; Fri, 06 Jan 2012 07:38:34 -0500 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:41419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rj943-00005W-Vo; Fri, 06 Jan 2012 07:38:32 -0500 Original-Received: by eekc41 with SMTP id c41so1116546eek.0 for ; Fri, 06 Jan 2012 04:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=DgUR3o2K45M1M4HI16Y3EtX2UPUygIL5EKEZOXkFbRg=; b=LL/iiBHgzQFyAN7xd8syZOieiFHIUrPK/ycbeH27Iw3z6/KVhpHsrDgLLkBHPfkoLs Y91mBpRwgTWL3lAWfCMx76pdOFK0iP8jKDbe0xoFAI1jFrGy5QrMQHFdNgvHlpX8StjI yZUFuYK0Ot1zPvh2skuzQa/gr0TgcEI2urnH8= Original-Received: by 10.14.9.164 with SMTP id 36mr2152887eet.127.1325853510945; Fri, 06 Jan 2012 04:38:30 -0800 (PST) Original-Received: by 10.213.5.6 with HTTP; Fri, 6 Jan 2012 04:38:30 -0800 (PST) In-Reply-To: <87fwftxbi5.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 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:13346 Archived-At: On Fri, Jan 6, 2012 at 9:26 PM, David Kastrup wrote: > Alex Shinn writes: >> >> This analogy is meaningless, but for the record >> you should be using fold or reduce here. > > I don't think it is the task of a language to enforce arbitrary > aesthetic criteria. =A0He "should be using"? This has nothing to do with style, but performance and scalability. "apply" will blow up in most implementations depending on the length of the list. And I never said there was anything wrong with (+) returning 0, please don't put words in my mouth. --=20 Alex