From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id B77093858D33 for ; Sun, 19 Nov 2023 06:22:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B77093858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B77093858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700374970; cv=none; b=nE4BHfew2CDidlnO0TPfvlaepx5kVkOlgCXVhgqtiXdVsbGwFIyYMXaMTUHgH4rHd958InBrdwca60vEBVh6YP2zLzUyeJnZXzUPnT+PWt8+c/tM1WKhSTF/qYdA61zHlAgyfSP/UhSmhkxMNiznxFDvN7hxWsWI8JyenF5oc68= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700374970; c=relaxed/simple; bh=kYmo3s5Q07bQZ5YFpyhpkbB7mtQntfpMGdzPv+967jA=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Dnt7TD7CPRACXCYbgFXtHphMJcdVSGcPvi/O47qxwRnU2jraZDCLsYJy/vXsyPzxOhMpFYheiqspuQbTMQaEk/HT3SFWx8iJB1HsP5tuu/e2vuy0dDyHO85KjuvUWE70DM3dhl0u335QfJeyttZJTCSk7qT5jP7v70v8q8VSm6I= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700374969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LQnkbmYiVPibK7Bm43CvEmB+MsV3ZngSndCU/CDgDWk=; b=ZESlbIFdezTMNOJg9Ye+pwsIK4KA49LdlDm8yRDedBUKoBKQYlZx0s+kTVSMJkHrPG+YDi PNqhQPydOqr3JFnKFyCf4OQMIJjd8eRG1b152g4dj58ojnqlyZrnm2ts4dtAJLhi4bC2d9 dl5C7sbHLRGXz+okio8MinGYaLhPOZE= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-195-Ag8TTURpPwGtwpzdVHYc0Q-1; Sun, 19 Nov 2023 01:22:47 -0500 X-MC-Unique: Ag8TTURpPwGtwpzdVHYc0Q-1 Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7a926469269so351438439f.2 for ; Sat, 18 Nov 2023 22:22:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700374966; x=1700979766; 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=LQnkbmYiVPibK7Bm43CvEmB+MsV3ZngSndCU/CDgDWk=; b=O5CNlcC34qOfgdTAc22FjPEOnuGHBC0YwiFdqKF78fO8yNe7mT0+oYjyRN8VovgyNv +f5RyuYF3QvP+mbwQIIqXZjWKOLsV6OqGHDlFKtHCoc8DS5iN+eGwh6TD95e4WcWgGNc Mq1amjJWXb9nF77ghf/52mZRXHGwypkxw5N5rmcVDt40OfRV+fUU5HPXtzIUMxEuneTQ W5okmXzFNZcGEkyQ7ZaEqAbwz/T3sIU8bgLCnm4kCWfkdm6oFpSnwmnNFB5km/q4lUbG mxAckSYeJSI3Zvm6Vl+vfbLYUQyLL6fKIWj0f0HoJ7QvqwAxJjcW6dj57Bt9Jcte+ad+ lb0g== X-Gm-Message-State: AOJu0YwpgddpjbnV+s9iqirtMR5CIyh1Ru4NKE56gPQaJZlTfj8tD0lL JBUB+s2Z/W+FA8VVbw3uyBKPVQuqRN+w/by+yNrlejDO0GTifO3y6/vANYtZJKjMPhgANprXkL/ /B/2oOHHGHAOst43k8NEgY+IJ0KgBLFqW2w== X-Received: by 2002:a6b:3f86:0:b0:792:9416:9c7f with SMTP id m128-20020a6b3f86000000b0079294169c7fmr4766462ioa.9.1700374966714; Sat, 18 Nov 2023 22:22:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRGNIXo4GTRDIsk9zjwnPvVy702mVpAXt4bYYbSdu+xkxMm2AY4GSB/l89b/QujTGCufqJgpdcbSbAhaJ4z3c= X-Received: by 2002:a6b:3f86:0:b0:792:9416:9c7f with SMTP id m128-20020a6b3f86000000b0079294169c7fmr4766445ioa.9.1700374966460; Sat, 18 Nov 2023 22:22:46 -0800 (PST) MIME-Version: 1.0 References: <2nV4Jls2nmL2lahW6X-HZsBb90H1QZJhy3ApVC8xpxvP6KUYDriDYJpxzqjDnshOUEQ6ehYzuXU6rJmPvj3l6jtqAniFlH4Buyfls4E8cfY=@protonmail.com> <00094736-8325-4c83-9237-a6c15c324c24@redhat.com> <3tSXKK_P5IpLLm2VJ76q-eiLPZhiaC6_ZpwOrej22LWsmGA_YXipLXwLdLNeFlShJaqpFH_LPQW6tqkPD1WlFnExnL-iDoW9CoA-KQETWYw=@protonmail.com> In-Reply-To: From: Jason Merrill Date: Sun, 19 Nov 2023 01:22:35 -0500 Message-ID: Subject: Re: [PATCH v3 1/2] c++: Initial support for P0847R7 (Deducing This) [PR102609] To: waffl3x Cc: "gcc-patches@gcc.gnu.org" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sat, Nov 18, 2023 at 1:43=E2=80=AFAM waffl3x wr= ote: > > The patch is coming along, I just have a quick question regarding > style. I make use of IILE's (immediately invoked lambda expression) a > whole lot in my own code. I know that their use is controversial in > general so I would prefer to ask instead of just submitting the patch > using them a bunch suddenly. I wouldn't have bothered either but this > part is really miserable without them. We don't use them much currently, but I'm not opposed to them either, if they help make the code clearer. > If that would be okay, I would suggest an additional exception to > bracing style for lambdas. > This: > [](){ > // stuff > }; > Instead of this: > []() > { > // stuff > }; Makes sense. Jason