From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Is this a bug in while-let or do I missunderstand it? Date: Sat, 9 Nov 2024 21:04:12 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 09 15:05:09 2024 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 1t9m5M-000A6O-IH for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Nov 2024 15:05:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9m4j-0007A4-3j; Sat, 09 Nov 2024 09:04:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9m4g-00079u-5Z for emacs-devel@gnu.org; Sat, 09 Nov 2024 09:04:26 -0500 Original-Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9m4e-0001Ob-SX for emacs-devel@gnu.org; Sat, 09 Nov 2024 09:04:25 -0500 Original-Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-460d1145cd8so21793081cf.3 for ; Sat, 09 Nov 2024 06:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731161063; x=1731765863; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kX0pzSW1a/Tnjnk+1DcsxdyqnqKm2IXibRQIqsWw574=; b=O5ypMCcBxUazaCTpQW6grIvzHhp+w2W7h2hfQNUhis+o5NanNqOOFoOB9OxxlKyxY9 Fw/4P26XIj3lmuVgsfY8c9D+DOl/75l6HuPiF+uen7X9pQzCdSRwP1v797G29qhbAF+a fnJfIU+XkJY0Qq0urUiIld3CFaaBHF8r1+7aKRYGJVbW9y+teIlQMYyE6BQjYvvKGz+t moejcDXCkZ73DjRlYrkv/btohFVH/Sjde8otQyNoypoy/gw49e57set7mCIFN9Bnn1vQ nBXbESehl+KzlqY+oJw5pV2lZmGZlW94jrYS9DgR4WEJwwsjwa/mhOLUcFqZbe9ggm4V +yTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731161063; x=1731765863; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kX0pzSW1a/Tnjnk+1DcsxdyqnqKm2IXibRQIqsWw574=; b=TpT/lCq6ANqorm43tKd710VQ6dxDDoWfCdVI5sY1IEomNQHUOYjMT03ENlX1LQGMfs Ku3pzR9oVhUKpRxYybwH2HrLFx3erdQ7o2QH1eoMeDMkCMAKlN8/2Myg0RhhDLaCSLY4 M4B+g/2h6jbh0n2FAlJK2fRlYuXa298tojZNn80WxIW3AgyjKEj9R1L8+Lw6mr3FncuN YSd1G8pIPnB5DWl0SSQWCApbu2S0ESaj3e2MnFftb01bJm52mOYDth1I5RxKG1EMuWsb utwKR7HEpNOyJkCbwoKPXuNH9XWfGpaa0mLcdLmiWjWK8QDTVCzMiyD3iJVRKmHPGouO 0cbw== X-Gm-Message-State: AOJu0YxtqvUVNeQMm5xwyxj7jA2ZR9u68FC3kmIAgHuEKDM4xDkUwoR8 yR+2JedCMLg8eie9xcNEuhe0Y29aPDPWw78+8SdTqPL/mT03cjqsbazuG9HNQiwQ39ztQ+v5x4s Ua3YV95yqfyci8g5kLRUXLHNTmqc= X-Google-Smtp-Source: AGHT+IEXjDm+TzU6O2Wmo/8ai5zpNSnn4ooFlOmXgDIj7Z8rGOnVXfZRIDrxIghuzKNx14YpzqtNGVZjxPA4vkWXMzU= X-Received: by 2002:a05:620a:258b:b0:7b1:5187:afb7 with SMTP id af79cd13be357-7b331e88f23mr836986785a.4.1731161063578; Sat, 09 Nov 2024 06:04:23 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=yurivkhan@gmail.com; helo=mail-qt1-x82b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325333 Archived-At: On Sat, 9 Nov 2024 at 20:47, arthur miller wrote: > If it wasn't clear, the unintuitive part is that while-let was to > establish the local environment, so that we don't need to type: > > (let ((som-var (init-form))) > (while some-var > ... )) But if it did it that way, the condition (init-form) would only be evaluated once, and I=E2=80=99d find *that* counterintuitive. Consider the usual form of a while loop: (while-let ((run (some-condition))) (message "running")) Do you expect that to evaluate (some-condition) once, then, if it=E2=80=99s initially true, run forever?