From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: RE: humble proposal: New special form progn-1 Date: Thu, 28 Jul 2016 20:35:30 +0900 (JST) Message-ID: References: <3d003b0a-6d60-1081-5a6f-6324add22e79@gmail.com> <5798C59D.8000308@orcon.net.nz> <54a95c7d-a709-4dba-b72b-68fbd063a916@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1670574711-1469705732=:21161" X-Trace: ger.gmane.org 1469705793 853 80.91.229.3 (28 Jul 2016 11:36:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 11:36:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 28 13:36:29 2016 Return-path: Envelope-to: ged-emacs-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 1bSjc0-0001Z9-KS for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2016 13:36:24 +0200 Original-Received: from localhost ([::1]:52535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjbz-0003Wj-Ng for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2016 07:36:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjbJ-0003WK-46 for emacs-devel@gnu.org; Thu, 28 Jul 2016 07:35:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSjbD-00057b-Ud for emacs-devel@gnu.org; Thu, 28 Jul 2016 07:35:39 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:34733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjbD-00056y-IP for emacs-devel@gnu.org; Thu, 28 Jul 2016 07:35:35 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id p64so21420014pfb.1 for ; Thu, 28 Jul 2016 04:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:in-reply-to:message-id:references:user-agent :mime-version; bh=Yc3gapLxPbPRFjDwNhdUcMUxSndb0SOfM3Oc78sMV0I=; b=la4H92Hl3ZYIcrwJsA+gOd8g/lacvSh0MCeFalRGsNhVEc9qoLUvn4pVFmPq0Rk2tQ nJc9g1Zvi4UUM5LRQbbMis4mDy24zTNAddh2nADBJolUTWdZauQc+ylMTu6yOoN3fPfN gEWMbF8D0nfSUCbLJoXRN67vQFL4BYVhzRBWyfYIoMFm8SIZe5ZUVvkwtO0loMNcogc1 jy7fkjCZ9TMpTa6u7Aa1zNLXkNyQsA2AFU8EBf8J1BfWdW+h0EQojTWH/mafMIIhuxqG wx8c5JpTAFwtP2HA+RJY7dOC4MuXJfJqN82qSnkUkGwSolT49UhkHWJ6fL0i0Z2KyDQo PZDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Yc3gapLxPbPRFjDwNhdUcMUxSndb0SOfM3Oc78sMV0I=; b=BaBMCpl4n9GNTauEed0dpSf5vqSIddIYmzRtTeiCjMLNBwtcs67XKYpZSRHkP+xs+n XwEIJe93LLFlfR6rdANvC4dOlfxY6ZJ0w4RcfPEyW4iuUjPNgUcZbNLngnk6fpub2XG0 lO3Fcqet9opXj78p+5CP7kKiHzmtnWMD5LWwpusrznNffbnN+szLVhUr7wY0k4rtk2G9 TFfIqYmYGMmwP6odXm4ucotvRWG0hOsbXdqtfpk6ybkqmepqfM5X5dn9B5awn/mAx3jK m51HVDWCEU7vfEsOzjj4UZVklsFICJlS1mVev8omDDX3LGsEdMx/MNIuV8FVDnxG6ENY vroA== X-Gm-Message-State: AEkooutDRPcwjnyepysyxE+9B/+63TLWgkpgAIZ37ZDmSoOnDbXhIZqbiKiZY4/CB8TUFQ== X-Received: by 10.98.47.132 with SMTP id v126mr58971450pfv.152.1469705733696; Thu, 28 Jul 2016 04:35:33 -0700 (PDT) Original-Received: from calancha-pc ([210.160.37.23]) by smtp.gmail.com with ESMTPSA id p14sm16415672par.32.2016.07.28.04.35.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jul 2016 04:35:33 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <54a95c7d-a709-4dba-b72b-68fbd063a916@default> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206205 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1670574711-1469705732=:21161 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 27 Jul 2016, Drew Adams wrote: > and sometimes for a return-value computation that is followed by > some side effect such as showing a message. > > But for most cases where someone else might use `prog1' I'm already > let-binding a variable that I use for the value that might otherwise > be returned by the `prog1' (or by a `prog2'). > > (let (... result) ... (setq result ...) ... result) Yeah, i also like binding one 'result' variable: this way all defun's in the code sistematically return the last evaluated form. Its easier to read. On Wed, 27 Jul 2016, Clément Pit--Claudel wrote: >No, that's not what I meant. I meant that in Lisp when I want to write >(n - 1) I actually write (- n 1); thus, when I see progn-1, >I don't read it as "prog (n minus 1)", but instead as "progn dash 1". >Given the convention that foo-1 usually means >"internal function used in the implementation of foo", >I read it as "internal function used to implement progn". This is another point against my proposal: the notation could be misleading. So, i give up with my proposal. Thank you very much. Tino --8323329-1670574711-1469705732=:21161--