From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generators (iterators) for Gnu Emacs Date: Fri, 05 Dec 2014 09:48:30 -0500 Message-ID: References: <877fy77zhp.fsf@web.de> <87lhmm24x9.fsf@gmail.com> <54812545.6030008@dancol.org> <87d27y22lp.fsf@gmail.com> <87lhmmiim7.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417790934 18470 80.91.229.3 (5 Dec 2014 14:48:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 14:48:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 15:48:48 2014 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 1XwuBa-0004jf-Ur for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 15:48:47 +0100 Original-Received: from localhost ([::1]:50750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwuBa-0007Hd-KG for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 09:48:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwuBR-00079z-9Y for emacs-devel@gnu.org; Fri, 05 Dec 2014 09:48:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwuBL-000790-8M for emacs-devel@gnu.org; Fri, 05 Dec 2014 09:48:37 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:61369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwuBL-00078u-3f for emacs-devel@gnu.org; Fri, 05 Dec 2014 09:48:31 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkIPAOwQflRMCqTq/2dsb2JhbABbgwdSgw6FWr8EhhkEAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kiEoJDdZMAQEBAQEBBAEBAQEBGQSQbweESAWLAYoemhCBeIQZIYJ3AQEB X-IPAS-Result: AkIPAOwQflRMCqTq/2dsb2JhbABbgwdSgw6FWr8EhhkEAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kiEoJDdZMAQEBAQEBBAEBAQEBGQSQbweESAWLAYoemhCBeIQZIYJ3AQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="99636566" Original-Received: from 76-10-164-234.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.234]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Dec 2014 09:48:30 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1809987F8; Fri, 5 Dec 2014 09:48:30 -0500 (EST) In-Reply-To: <87lhmmiim7.fsf@gmail.com> (Leo Liu's message of "Fri, 05 Dec 2014 16:52:16 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178928 Archived-At: > No. Daniel's package https://github.com/dcolascione/elisp-generators. Do > you have time to critique the code and make it an integral part of > elisp? Thanks ;) Oh, one more thing: is it technically important to sign the end by signaling a `stop-iteration', rather than by returning a special value? I think I'd prefer returning a special value (`condition-case' tends to be on the costly side). Stefan