Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp681995pxb; Fri, 16 Apr 2021 15:46:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4F5t8vBraXCA1gJnGBftfhpoq1+ocMNPAI9lwTVtcZwwCoMJhdnGvpPJvfhx7RS7gtimi X-Received: by 2002:a05:6402:204e:: with SMTP id bc14mr12666907edb.312.1618613215791; Fri, 16 Apr 2021 15:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618613215; cv=none; d=google.com; s=arc-20160816; b=hmjXER6WaEADmXqAb/XjF9GTYWNMtl/61WBmaN4T8RF+jCEzu8xr+Msgw0F4ebBJdU 7/bv2qKhNkymwvDWhfIifdGW+urnGJ//LrWGtIROH00mgkhoW9qkWECJ12IK1v2MDOOz yEhm24KuoGQRf0CXTIk1m2RJABH16DCXfuaxgty4ctiO3pr1Nvsfv8EIBgVT2/cm91r4 nT2rgGdef9dXuYXdgmDFmIaNEYsvk96AdgT+Pfa8X4SFupOxK74LDNo5350jBhmt0Gol e98P8+ByOYmAePspTE/iTVR29z/LTV7xaUpFJr9zdWIeE0mMJZZm6LIpSTEOsz7NS2Ir EQGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=P50GXc5IH1CT4TfEkaf3qg7V5dfKT8U0qgC4ku7GcBk=; b=RDie6bdTxStwmE3Mb1Hl62R9vAITIPVkMyY5787hPDUkbBmoC+1ZGMFnfc4zFN7DnM ykTFczwZr4TVG/i3c8w/rj8tvaNfuSTMYe9S0b/N3sqf0hWHOuQYFi4jlYpjPDyDa3Y5 HtWE+KgNmc7G3FYEUvffaDHQElrnFpGR3kPEAhyI4B47RJqN25bDeC10j8o0jLuRauzp lgMz0W/GE0PBnPbfX4tzbYbBI3fgplkZoBRv22fOOtMHTT3O2m3+/MWO89eOy1zjXAwg +a0FIaZUa1Cp8VvCtNevPZRQCOavxhDafTmu5NS7egiI3tgJ+66/IaCcwVf+2gpgm5fg Oh0A== ARC-Authentication-Results: i=1; mx.google.com; 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 dn3si434624ejc.198.2021.04.16.15.46.32; Fri, 16 Apr 2021 15:46:55 -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; 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 S230489AbhDPWqA (ORCPT + 99 others); Fri, 16 Apr 2021 18:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231958AbhDPWp5 (ORCPT ); Fri, 16 Apr 2021 18:45:57 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C140C061574; Fri, 16 Apr 2021 15:45:31 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lXXD1-005sC3-EJ; Fri, 16 Apr 2021 22:45:07 +0000 Date: Fri, 16 Apr 2021 22:45:07 +0000 From: Al Viro To: Willy Tarreau Cc: Miguel Ojeda , Connor Kuehl , Linus Torvalds , Peter Zijlstra , Miguel Ojeda , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Michael Ellerman Subject: Re: [PATCH 04/13] Kbuild: Rust support Message-ID: References: <20210416220416.GA11872@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416220416.GA11872@1wt.eu> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 17, 2021 at 12:04:16AM +0200, Willy Tarreau wrote: > Yep but I kept it just to have comparable output code since in C > you'd simply use "goto leave" and not have this function call to > do the cleanup. ... or use any number of other technics; the real question was how much of cleanups would be skipped by that syntax sugar. IME anything that interacts with flow control should be as explicit and unambiguous as possible. _Especially_ concerning how large a scope are we leaving. There's a bunch of disciplines that make use of that kind of tools and do it more or less safely, but they need to be well-specified and very well understood. And some tools (C++-style exceptions, for example) simply need to be taken out and shot, but that's a separate story^Wflamewar...