From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: xenodasein--- via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Thoughts on replacing macros with static inline functions Date: Fri, 18 Nov 2022 07:19:45 +0100 (CET) Message-ID: References: <83r0y4idy8.fsf@gnu.org> Reply-To: xenodasein@tutanota.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="883"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , pappasbrent@knights.ucf.edu, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 18 07:21:02 2022 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 1ovukH-000AG6-Ej for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Nov 2022 07:21:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovujC-0008HA-CJ; Fri, 18 Nov 2022 01:19:54 -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 1ovujA-0008Gh-BM for emacs-devel@gnu.org; Fri, 18 Nov 2022 01:19:52 -0500 Original-Received: from w4.tutanota.de ([81.3.6.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovuj8-0004IN-Jn; Fri, 18 Nov 2022 01:19:52 -0500 Original-Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 762281060210; Fri, 18 Nov 2022 06:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1668752385; s=s1; d=tutanota.de; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=vCF65ZCN6to+zmYzgtANvM7G3c8gD5EkVzZwJKEPhVc=; b=RyV2hYdGdbkAik8bqmYsnXNGUfLsJaaoL7Ki3nrNWgKNofZngDLBhBiZm+OkalgM T01PJqMDtZNHk3khD/sGohXB/KzdfSvvqH/a9L8eybcytpUBeOWqqEVNAel2aArw6OR 62oSHWpC8VQ5G5eqtdxDK2A18H7D/MIr9ro1VddGFEUdWs+y0xY1HK2wZq/WZ1IJEhJ yva1EqylLRa9HeydxG47D8GKFCLc4RCTVSYVUrFGUDW+HSpUVBJR+prJ5N0NkW4rAHE 7Fpwo9aywVLEqqEW4Me+KLGHVKMjt4UjAAAtXBt35BQCMTlFhLSxWjVPeLWHWBdBmRR F08XgDaNUg== In-Reply-To: Received-SPF: pass client-ip=81.3.6.165; envelope-from=xenodasein@tutanota.de; helo=w4.tutanota.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:300082 Archived-At: Nov 18, 2022, 05:05 by rms@gnu.org: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > I agree -- there is nothing wrong with macros, and we should > not make it or goal to eliminate the use of macros. > Macros have pitfalls, which are consequences of their basic nature, > but we know how to avoid them, and have documented the methods. > > The GNU C Language Introduction and Reference Manual advises users on > how to deal with these and many other pitfalls of the C language. > > -- > Dr Richard Stallman (https://stallman.org) > Chief GNUisance of the GNU Project (https://gnu.org) > Founder, Free Software Foundation (https://fsf.org) > Internet Hall-of-Famer (> https://internethalloffame.org> ) > Why do you not consider __attribute__((always_inline)) an improvement over macros where applicable?