From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: return Date: Fri, 26 Nov 2010 10:36:51 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290764245 5989 80.91.229.12 (26 Nov 2010 09:37:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 09:37:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 26 10:37:21 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLuk3-0004uc-R4 for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2010 10:37:20 +0100 Original-Received: from localhost ([127.0.0.1]:44008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLuk3-0004KB-A1 for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2010 04:37:19 -0500 Original-Received: from [140.186.70.92] (port=54112 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLujy-0004Jr-FP for emacs-devel@gnu.org; Fri, 26 Nov 2010 04:37:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLuju-0006Zh-9o for emacs-devel@gnu.org; Fri, 26 Nov 2010 04:37:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:36018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLujt-0006Zc-Td for emacs-devel@gnu.org; Fri, 26 Nov 2010 04:37:10 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PLujq-0004n7-9g for emacs-devel@gnu.org; Fri, 26 Nov 2010 10:37:06 +0100 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Nov 2010 10:37:06 +0100 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Nov 2010 10:37:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU3Li8TCAtLRERDOjx1 bmMLAgQfExQoHR5/CnKSAAACPklEQVQ4jU2TzYvcMAzF1cm2ORua7DXYpmdjL8y1uKb3FHLf0GJf Uwbif79PstMds5/6WU96sobIm+CD19cJOPw/kdfmKa6NF6ZpAH8GoQFPQX59JARIGwZGULvaSkhG INwZQheXDACHy+R7wqUUcMOhMomCCU0q6sDtE5Ej7YOVhvFlY1wIQnKgiIvohDOTXhCq9RgrF/ep dcOadNRac6mVEojV2g0D1BYaET8zDgOiYJMbQhgc6+Ss1Os3AEfOvSUWB0MK4uvXn5QivC+3xL1A DFIA06/PlJDiXeXOYYEETNu2MTCscEAJSQI2AW3YnEMCzr2DyONzDjkHvlG7A5u0ByA4ExMAeWog WuNCKwBYT2U/MRhshDMie/uO+bz8QEYSUG/RDIO7RRvtS0zxnvNDCUAK2rKpn4VnwrPKIClBzhrp oZadDSrK5dAAOkTM3aGvP9LuSjmjJiTwWnhJJzMUH6xXj7dWIGpnL+cwqsAei+9obNYJmTNA+YK8 m2i6um/bRLvEc/5dTx7IUjGxU3FXSuKcghV4nOXkp1WKZga8AIXBne/s07Z2gBBfre8Sbwalp8xz KOXkmfOTs8G/KF6qDKhv1K6kBtu4xcCrE9x4SlhGgvjDRtm5dty5i3NVyMmT1sN3GrGOO72GIMql Xge1jjvRbEZu5SL4Y0aVaaatB7EI8MLLM6sJDok7QMcHtY/0eIo/FN/kKJlx4Y/R2Fd0+08m+dlO k7rY2oObGPyIq2kVQanxnCEXp7Xpqn9ghguIOaCHEQAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Holger Hiller's _Holger Hiller_: "Come" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LLg8GC9v02wVFGk9uWZwia4mZzM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133152 Archived-At: Miles Bader writes: > Doesn't every defun in CL establish a nil block? No, it establishes a named block, so you can say (defun foo () (when zot (return-from foo t)) ... stuff) Which is kinda annoying, in my opinion. Especially if you have long function names and a lot of return-from forms. Or you rename function names... But that's also an option if we think it's better not to confuse Common Lisp peeps. > Of course one question is: what about returns out of lambdas? > Would/should they be supported, given that they need an entirely > different mechanism internally? Hm... I haven't thought much about that, but my immediate feeling is that a syntactically clearer return functionality isn't as necessary in lambda forms as in defuns. Lambda forms are (in practise) quite short and sweet, in my experience. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen