Macro for Python-style debugging output

2022-03-28 Thread Jean Abou Samra
The following macro is a variant of peek that mimics Python's = format specifier (e.g. print(f"{a=} {a+b=}")) by printing expressions and the values they evaluate to. (define-syntax-rule (db arg ...)   (begin     (let ((evaluated-arg arg))   (format (current-error-port) ";;; ~s => ~s\n" (quot

[PATCH] In curried definitions, move docstrings to outermost lambda

2022-03-28 Thread Jean Abou Samra
Hi, Please consider the following patch, fixing bug #50068. Best regards, Jean From 79552d2974e9cbcfcf01960aab68cb6824c88972 Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Tue, 29 Mar 2022 00:14:45 +0200 Subject: [PATCH] In curried definitions, move docstrings to outermost lambda This