From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 1868C1F4B4 for ; Wed, 31 Mar 2021 18:02:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234473AbhCaSCQ (ORCPT ); Wed, 31 Mar 2021 14:02:16 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:60368 "EHLO pb-smtp2.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234596AbhCaSBy (ORCPT ); Wed, 31 Mar 2021 14:01:54 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id BDC6DC772C; Wed, 31 Mar 2021 14:01:52 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=odNodEp/TTS74buhiAGQhy1t+0o=; b=IkxGbm 4mJ7YYoM9uuR2LSAJmp8RzO+ZIcabJRt9XvT/4ST02r9MzLsETFAC+e3UbRHQW4t NP1paUI+cVuJPIWUkuIQwf6asrhehDuQ6wltANuAH/xxCh/pLj1OH1UpLSVWnvOz YpTgj5jPOBrFMtIw8hrC1AY2Qaz2WVrgjDREY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=plrJlveZiRPMjRhpkRckVVCOu36oq2cN e7dr6HGWNuZZ/9Um26pWAEQ+ogNlHS7lDU6V8PXBbStNmUnskQMb8NptcB0Jg6oI sH10XTWlgM5ZWQdqiYcuYc8QlLFAZsPBEPBiIVuVpspOv4W6234DsLKI93ymfeoJ 8L/M6143GbY= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id B3417C772B; Wed, 31 Mar 2021 14:01:52 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.74.119.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 31B68C772A; Wed, 31 Mar 2021 14:01:52 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Elijah Newren Cc: Johannes Schindelin , Elijah Newren via GitGitGadget , Git Mailing List , Philip Oakley , Phillip Wood Subject: Re: [PATCH v2] sequencer: fix edit handling for cherry-pick and revert messages References: Date: Wed, 31 Mar 2021 11:01:51 -0700 In-Reply-To: (Elijah Newren's message of "Tue, 30 Mar 2021 13:16:51 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 2BEF8918-924B-11EB-842C-74DE23BA3BAF-77302942!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Elijah Newren writes: > ... would you two prefer > that I add a new affirm() function that is ALSO compiled out in > production? The reason I do not think affirm would fly is because it shares the most problematic trait with assert(): it can be comipled out. There was at least one bug we found and fixed in a piece of code that came later in a codepath that had an assert() in it. The buggy code (IIRC, it was added way after the assert() was written in an unrelated patch) was unknowingly depending on a side-effect of an innocuous function call (i.e. assert(func_tion(args) == expected)) made in the assert condition, and the bug did not reproduce in the developer's environment.