From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Brooks Newsgroups: gmane.emacs.devel Subject: Re: lengths and other stuff Date: Sun, 27 Dec 2020 16:00:09 -0800 Message-ID: <87h7o6re9i.fsf@db48x.net> References: <87o8ivumn5.fsf@telefonica.net> <87pn2wudab.fsf@db48x.net> <87mty0c3m1.fsf@gnus.org> <83czywnb86.fsf@gnu.org> <87im8ob707.fsf@gnus.org> <87eejcb6nx.fsf@gnus.org> <875z4ob5c9.fsf@gnus.org> <87a6u09nkq.fsf@gnus.org> <875z4o9jdg.fsf@gnus.org> <87r1nb8yoj.fsf@gnus.org> <83blefkte2.fsf@gnu.org> <87h7o69aa8.fsf@gnus.org> <87pn2uq3ty.fsf@logand.com> <87ft3qq2kz.fsf@logand.com> <8735zqsvc8.fsf_-_@db48x.net> <87czyuq1ar.fsf@logand.com> <87lfdirff6.fsf@db48x.net> <877dp2q0az.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36739"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: larsi@gnus.org, eliz@gnu.org, "Alfred M. Szmidt" , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Tomas Hlavaty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 28 01:02:02 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktfz7-0009R0-Jd for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Dec 2020 01:02:01 +0100 Original-Received: from localhost ([::1]:52688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktfz6-0001RJ-KU for ged-emacs-devel@m.gmane-mx.org; Sun, 27 Dec 2020 19:02:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktfxP-0000Vp-KY for emacs-devel@gnu.org; Sun, 27 Dec 2020 19:00:15 -0500 Original-Received: from smtp-out-4.mxes.net ([198.205.123.69]:55394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktfxN-0006cE-V0 for emacs-devel@gnu.org; Sun, 27 Dec 2020 19:00:15 -0500 Original-Received: from Customer-MUA (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D2937759A1; Sun, 27 Dec 2020 19:00:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mxes.net; s=mta; t=1609113612; bh=UsV3OI7pVjlMXGs9ARSNt5Wki3lJ0Emha/S5RU0B3TM=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=vsjJF19tlEDTPw0EUFPUqvU/7kn11sj/VmBNI0+bdpLFmxADr97Mfd+QYgE+RjbjR /ub0IUQgS7T9BRGP7ftqg61Ga68N55ZdWo4fcLuk4ZoxaZX0esBQqnGo2aBF4l6WUs 4+dANE9l+yleoyREhzQek/6CkLGaMqIwsLuyCv3Y= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGOfPtRkwAAABJQ TFRFpKfbdou67PD6JjJgAwUWXGSeIcyLHgAAAkZJREFUOI1VU8Fy6yAMxLi+Q13fCZ3cnQL3dqTc 7RD+/1feStDXVnXHDuvVSivZTMba2GPdw3gyCGcMAFxTyrTd9dwGoxHiZX9PmRFUHYAQlGGtXY+F Uk0SJOxgJiUEnH1qkitT9D+pQub7qGAmUbR6bu3CvI96Yv6QqkBBMrsyfZccr1/RDXGDTLf4P7ZY glVxe2V+/ACXWO1gvDO9/gDRpFFVmPluvLcmBjd5H6d8DEte+Pbk4rcY/Fa5tLKLOtCZsuQKYhpa LOkYDT7hESya7/WIET3lfQBqX0pwFtbI832Is0ayMUR9B+12xjgPCQ089cfwkCkX6L5TPmRelJTh zMS0Sz1PyjLAMCUWjcmgQLWQMds+e3aaauZDf9dU9A2/8kPVF2odCUoMKHkfjJR+mbgC+DRiycw5 3XSqGe6HmhN/AWjHypkAXOAFW5EiuA1ge2GiZuMb0s1fSEXcATeLUfbyEY2L8yPOmdSsdghQXx3K pz2eoeXuYvMCINVFDrCdNfVUp4eJ6cSEbjbgFjBEvonGGTrgv9cHjAc8aVgSAPoxaONbzfwhDIhR at7IIS7fAGiDSwIA9alhhTBzfA7YM2FY6eMwayrIGK8FDFmshmUA43WqhFtpvoqG9HHaJ7fqtgTz 8EWVkgZgtsylFliHDgk0MB7KAEC45C/rgnGvanNLXyzOeTzcT2nw/N44gfrtYXRQLoz9Q3TgmJRx 2Mx/Q51qzpm+l3m8z2SWBqC5+PZXAtNYlGFf/gKfHfjFkDT4x7od7R+w3Ls+ZdQBuQAAAABJRU5E rkJggg== In-Reply-To: <877dp2q0az.fsf@logand.com> (Tomas Hlavaty's message of "Mon, 28 Dec 2020 00:47:00 +0100") X-Sent-To: Received-SPF: none client-ip=198.205.123.69; envelope-from=db48x@db48x.net; helo=smtp-out-4.mxes.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261958 Archived-At: Tomas Hlavaty writes: > On Sun 27 Dec 2020 at 15:35, Daniel Brooks wrote: >> Tomas Hlavaty writes: >>> I think you introduced two bugs: >> >> I'm surprised that it was more than one! > > Not sure what do you mean. The intention of the proposed predicates is > to improve code easily and not introduce any bugs. You just showed that > your proposal cannot work. I was agreeing with both you and Alfred. His point seemed to be that length> is a bad idea because there are better alternatives. There are often better alternatives but, as I pointed out, using them takes a lot more thought. I didn't expect my use of multiple-value-bind to be perfect, since I spent only a minute looking at the code and hadn't tested it. I didn't expect anyone to write back five minutes later to point out not one but two problems with it though! I think length> and family are a good idea (though I would have gone with the longer-than-p suggestion instead), but that it's also a good idea to use alternatives when possible. db48x