Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1008042ybt; Fri, 19 Jun 2020 21:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl3nNQvrT/HCVvO7w2W7ce1uqD9qmSWK+Sopa+3UwOoGPt0WSuTxzrZJwdF+b54BJxolcT X-Received: by 2002:a17:906:d8bc:: with SMTP id qc28mr6944699ejb.167.1592627175881; Fri, 19 Jun 2020 21:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592627175; cv=none; d=google.com; s=arc-20160816; b=OMJnAwOVUSzcUJEtPSrH7a/Sbrzq6H/4woZvOeNY7/NpdYqi2cOy/K+5sEuu/AYvJv K2ywETa2DtZvl9w5r583GdPtNaeHFAGt/udq/eVlAifHWZJKIDHZ8jXrQu0f1alYZN56 XkIVkaHeFn0fWkMocS2axU8/np7YaVHo4fbtUNP0afYe0hLO6+izbqLzKD/q+LseC4wE lGrXC38q0ocr3hOWGJneT3+mBfqBnfLGFYfwMUuM1rui66JQHtiMfNgjz4mBV08xom+s i8EkBtimK/5Q4J8CHTT0gpOsl72HfLZm+wwXv/qqVO3Voizdwjj8eq0XfjEN3zkbMlsa GOZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H3fbVijkwGqEXjgf746UVzNHZFijt5PEP/I+cIGFrOI=; b=GOCld9hbCshYp/sXW3RjmaLVwOtlWH9jEQ+aWgEir5zdkz58J5c5/6S+hBpxxAupjc N73QfJMbB0zW1hlBpSFiqxi46nI9H1rDQzEwd7RMkTMgjaRqDX+ItLlR2n1BqobJDYDz udt/Ho3OaeTCkvBmd6Dn0XDOSkyx9VHJaft7Q9k6bYn9Ki6DwqvZjCy/MugArtuIW30/ Rk8F3PwX0mXagzQBR9kwHepW66dUrEE2AlKzoZuZ2vngrupPB++Q59nt1/TIIah5u67t Hg1QkeFIRxRfzvxBUSRIqAX9n8jNusXyTmjTUOB6MsICsbdrLWrIIlaRWjO4zrZahjmU B4KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Pbi6ZcZ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si5672645edj.3.2020.06.19.21.25.54; Fri, 19 Jun 2020 21:26:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Pbi6ZcZ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388747AbgFSSiL (ORCPT + 99 others); Fri, 19 Jun 2020 14:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732498AbgFSSiH (ORCPT ); Fri, 19 Jun 2020 14:38:07 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307B2C0613F0 for ; Fri, 19 Jun 2020 11:38:07 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id c17so12585285lji.11 for ; Fri, 19 Jun 2020 11:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H3fbVijkwGqEXjgf746UVzNHZFijt5PEP/I+cIGFrOI=; b=Pbi6ZcZ/j5UzKi4TuELv3vWZVoPaSRX4qHDHfjemlgk/7t9FABxdeWgh51bILfCKJ5 wi8F+rrtMy4gj2dpmCJd8yxSDI3bKAoHjCDk9Pmgk4ebmFXb7pgJH6u8Pl1d3HL2Cn+Y CfZiRrUn8yF0xtr+Dhn2AXvWp8IgyXRWpqhQ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H3fbVijkwGqEXjgf746UVzNHZFijt5PEP/I+cIGFrOI=; b=IHEKu2chD/XAmcTurrxjAFeCgrhGSt8iB8d229p4hbfu7eQp1Y2E2DcgqqxecNXPr6 QLN5eGXhMo+YixkntdNEX0oCQvSKbxx6XSxhgO219WC5TRbR48/X/3z9OuATjtJw16um GKoUn7q1gutP9z75vjDR0oiWk52OoBLkYy8dsduZ/wxb/gh4/+Vkmrs798EO5x41pM6E 7LQ7UaRQ+fxtXnqzpeLz3V2GDjZTPorsONL/m2O6K3Ut66DMLhpR399a2DZzR8DIuRyr OXdOpLMw0g0qFaA0QumdOcf0eLw33de4gCo1N31aTXQMeqvvBJcMSLxQULw9wJE0zGJF eK6A== X-Gm-Message-State: AOAM531AuUZFmneG/vksUvxvd6vm9hF715q2uot4muP98WcdnDEmN9I9 Qe7MSNMclER4D1xDyEAlyWBEF6GKWBU= X-Received: by 2002:a2e:9653:: with SMTP id z19mr2289969ljh.380.1592591884684; Fri, 19 Jun 2020 11:38:04 -0700 (PDT) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id r22sm1533071lfm.30.2020.06.19.11.38.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Jun 2020 11:38:04 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id d7so6107329lfi.12 for ; Fri, 19 Jun 2020 11:38:03 -0700 (PDT) X-Received: by 2002:a19:ae0f:: with SMTP id f15mr2684358lfc.142.1592591883165; Fri, 19 Jun 2020 11:38:03 -0700 (PDT) MIME-Version: 1.0 References: <20200618210645.GB2212102@localhost.localdomain> In-Reply-To: <20200618210645.GB2212102@localhost.localdomain> From: Linus Torvalds Date: Fri, 19 Jun 2020 11:37:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] linux++, this: rename "struct notifier_block *this" To: Alexey Dobriyan Cc: Linux Kernel Mailing List , Netdev , linux-arch , NetFilter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 2:06 PM Alexey Dobriyan wrote: > > Rename > struct notifier_block *this > to > struct notifier_block *nb > > "nb" is arguably a better name for notifier block. Maybe it's a better name. But it doesn't seem worth it. Because C++ reserved words are entirely irrelevant. We did this same dance almost three decades ago, and the fact is, C++ has other reserved words that make it all pointless. There is no way I will accept the renaming of various "new" variables. We did it, it was bad, we undid it, and we now have a _lot_ more uses of 'new' and 'old', and no, we're not changing it for a braindead language that isn't relevant to the kernel. The fact is, C++ chose bad identifiers to make reserved words. If you want to build the kernel with C++, you'd be a lot better off just doing /* C++ braindamage */ #define this __this #define new __new and deal with that instead. Because no, the 'new' renaming will never happen, and while 'this' isn't nearly as common or relevant a name, once you have the same issue with 'new', what's the point of trying to deal with 'this'? Linus