From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Understanding the assert macro from okmij.org Date: Wed, 20 Mar 2024 20:27:34 +0000 Message-ID: <6a040ece-3651-4f6f-a889-187b829a0c98@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24034"; mail-complaints-to="usenet@ciao.gmane.io" To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Mar 20 21:28:09 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rn2Xh-00060e-2z for guile-user@m.gmane-mx.org; Wed, 20 Mar 2024 21:28:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn2XH-0001Lt-CI; Wed, 20 Mar 2024 16:27:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rn2XF-0001LZ-BL for guile-user@gnu.org; Wed, 20 Mar 2024 16:27:41 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rn2XD-00005r-Hj for guile-user@gnu.org; Wed, 20 Mar 2024 16:27:41 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B9F4F24002A for ; Wed, 20 Mar 2024 21:27:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1710966456; bh=I5fXAiEvHA2++cF/s5dIYYFd0l/Ek7TeNpytvxdlaCs=; h=Message-ID:Date:MIME-Version:From:To:Subject:Content-Type: Content-Transfer-Encoding:From; b=ep+gsDk7g3ZMk4uggAB7tYoCoJi8DMlRjddktXTmvOSKyzicMlW7lZnUTkKi39H2V M2R7U/IQESksFUHZ/z/5oth9kwlyoPPtRc3kThd1nbHkE85zBWnqSr7aO+6o2S3Lkc 5LqJPAgLtl5M38M4NsMWrHwETYCpd1N/EqTUroCdXLdVx28arsk8PivD664dDkrvZO Aa+8yC+vC7n145nHj1rnZptVknZxspE4Lvu7R0EhAtBviC1DyD14z+yg3ZA+sUyhmY aWGsMOVe/Ne9t1gYb7kUHvw8gS97HAH8FDkqGpfZhp3hRejx7i7npoCQQ6mB3Ab6DS 1d6KFF3UgzdBg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V0Ks41SRVz6twf for ; Wed, 20 Mar 2024 21:27:35 +0100 (CET) Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=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: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19486 Archived-At: Hello Guile users! Thanks to your help with understanding some of the macros involved in the assert macro from okmij.org, I think I now have the whole thing. Here is a link to a full explanation of how it works: https://codeberg.org/ZelphirKaltstahl/guile-examples/src/commit/be16f636a6ad637de38c695ba5881cf47fe8df29/macros/assertions/assert.scm Incredibly densely packed stuff to have that go without a lot of comments. I think I need a mental RAM upgrade of a few gigs or so. Thanks, it was again a great learning opportunity. Who knows when I will next need one of the tricks used in that macro? Best wishes, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl