From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Default lexical-binding to t Date: Sun, 03 Nov 2024 10:26:30 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28338"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 03 16:27:16 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 1t7cVX-0007F2-E6 for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Nov 2024 16:27:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7cUs-0002Tk-Oo; Sun, 03 Nov 2024 10:26:34 -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 1t7cUq-0002Ta-Kl for emacs-devel@gnu.org; Sun, 03 Nov 2024 10:26:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7cUp-0002OK-F7; Sun, 03 Nov 2024 10:26:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=DTBjzOuPXZayj76oxi2I/pnjYvGSSaXcPdWlm/T4Sxw=; b=c0K0heCybTKEFjC8LxXG J1hB/GUu4moFR3EUjxQRxr3IcHmD2Qhha2hXr/vMVayK7q5glbq5lQO2ltZTdU3DcRCEuxD0drZF4 MwL2p9+GNRy6ts3ULE0rhuTVrw+kyB6odhrzjf7K66CZYHkMeiLfy9ADlHNk76cVtHxrj+y3VR+EE 34/Hg4Wxe1HaxwDHHJfIoIMPDVyjzpnhPRablVAQ3pfGlIpIL8NbYSZfzPZZCqopSmSOgQHiyIB4/ kDuB0DwNKvTyYTt52kSCvUUSkqaORG9eN3E/mOeZ0DB3gQiEg/oa1hJgq6QDlQaPiCmZUCVgq1Ohe 07z3AVq41sP9xw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1t7cUo-0007zm-R3; Sun, 03 Nov 2024 10:26:31 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 01 Nov 2024 08:55:56 -0400") 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:325062 Archived-At: Stefan Monnier writes: > In bug#74145 I suggest that it is time to change the default of > `lexical-binding` to t. Clearly this is a breaking change, but only for > those files which: > > - Don't have a `lexical-binding` cookie. > - Have code which happens to behave differently under the new dialect > (such code is not rare, but a lot of code works identically in the > two dialects). > > I believe by the time Emacs-31 will be released, such files will be > uncommon, and it is easy to fix them (either by adjusting he code, or > by slapping a `lexical-binding` cookie). I support this, together with the idea of having a warning when loading file without the cookie. We can always remove the warning (and the cookies) in the future when/if we feel it's time. Andrea