From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mJFLOhArDGKxXAEAgWs5BA (envelope-from ) for ; Tue, 15 Feb 2022 23:37:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WLXYMhArDGLqLwEAG6o9tA (envelope-from ) for ; Tue, 15 Feb 2022 23:37:04 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7D5053D0BF for ; Tue, 15 Feb 2022 23:37:04 +0100 (CET) Received: from localhost ([::1]:47106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nK6RT-0006wx-LB for larch@yhetil.org; Tue, 15 Feb 2022 17:37:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nK68M-0000ci-Oj for guix-devel@gnu.org; Tue, 15 Feb 2022 17:17:19 -0500 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nK68K-0007zZ-Vz for guix-devel@gnu.org; Tue, 15 Feb 2022 17:17:18 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1644963433; cv=none; d=zohomail.com; s=zohoarc; b=WVWUZoRMQweQrCNk2gp7A4W/2z4to19mb+XXi3ZfJA/d25zzIjHWYe6dEjyyVkTLrlQx8QSkfSYOe+hBbDpWhd/WCtXBgITvxFdo8Av27BFpk3oHQnR/NBBc3DglL1IbRK9tUih359mVzuq+Bp+Axh26R4zgzeWB9v8fJth4jEo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644963433; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cqaTdXhnkFSIae8n4rPEB2B8eQzekfbc91SpeoQaBPE=; b=B8ClMeboBzyLc8VQVPRUGb3tFu8SloGTbj0W5hU/rOETv9P+m2+a/Ri3S+64v2OuOWsks935506rqalUqAsNrrUJ9zfZdHcOAWuzWHAVVZBqVukLkUS3pQgPPrDa7CUpL6JmpHsVdueWbi980uvLe9tt5l2bnOx9ffDJhHLvuU4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1644963433; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type; bh=cqaTdXhnkFSIae8n4rPEB2B8eQzekfbc91SpeoQaBPE=; b=ho4ALVk84+2AJsRuu1zqISf7rN+JHy4R8vjYt9FulZeiTqbUF7/44UmGktwkGM3U d5/kUV+C2ESPmGAZYNzFSCaX592DaFxqD3SJjqOm8OGhNzY2iJIlnXnTofSM0DiwsgW DoB4og76Ug7+qsdxuomgiTrKGEH8EJ+1CO82dKFw= Received: from localhost (p54ad4f78.dip0.t-ipconnect.de [84.173.79.120]) by mx.zohomail.com with SMTPS id 1644963429451944.18598057483; Tue, 15 Feb 2022 14:17:09 -0800 (PST) References: <87ilthoxvu.fsf@elephly.net> User-agent: mu4e 1.6.10; emacs 28.0.91 From: Ricardo Wurmus To: Philip McGrath Subject: Re: better error messages through assertions Date: Tue, 15 Feb 2022 23:15:26 +0100 In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87k0dv6ahq.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644964624; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cqaTdXhnkFSIae8n4rPEB2B8eQzekfbc91SpeoQaBPE=; b=i/rqMDeVIEn15wPw1nVbUrOcpYVPm8ZV8I/0nLSiCyCIbuHt22cnc+1NMYh76l+ZU+AlJY +dzbXi+W5TtEcL9aNLhUNywm+vVNxONvraSi7h2030HNz10Fa7fo9GPJ0xD+9Yitrak04u nqxmOYoY8AGrxz9hGIUV/1BnyVazMY2whVHBfX4Tp7bm6JNFJAizU7BGDmOMPV2KW9g2ag oy6OoPtbM6I2N9IMua6xqcyy4TYToqyKe1vPmLTUExbhQMDWKZUuBpPfOvpad0ueuQA9he yfEyFz6rtWlRm2Zd1oFqtatj0iJ1yOCkHJMBFe/BwRtLsOpRqRASDCy6XiPvtg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1644964624; a=rsa-sha256; cv=fail; b=qdAztw/8uoOEz6OliSzrzFLa1seiGFCSdp3sUFZ7Q0nGGizvdbnXilE9ZA+vjxE30QMTKc yFm0gPZuV28nO9ojN0DTmzKF/PRZLTg8jO8hIZQI6iuYLw5CelA9oraqai2Maho5/oAcA3 BPtTFq4gknPzWhBLAMm12kMAs015SML+/TbsbPn8tGSAfPGugwUhes3F+uhuchEo39/EL1 1wLWaHZRfxCdQJCocnSGCyT0ZwvytSvZcRHFgdwi3ll+Ea9r1VelFOgLnRLOnnZOM7ZQg8 bM003RcU9FLbpYlSWlvIzhLUKBffZCLyhImdeVRSzalhSZJQ9eulJRuN6HDD4A== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=ho4ALVk8; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=ho4ALVk8; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7D5053D0BF X-Spam-Score: -1.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: EDWVarGUT11N Philip McGrath writes: > As a Racketeer, I think you're half way to reinventing contracts. Yes, I was in fact thinking of contracts, but shied away from mentioning them :) The reason is that I think we can cover a lot of distance with just a few simple assertions to avoid plowing ahead on bad arguments. -- Ricardo