GNU bug report logs - #76132
Clojure-style auto-gensyms for macros

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tsdh <at> gnu.org>

Date: Fri, 7 Feb 2025 21:13:02 UTC

Severity: wishlist

Tags: patch

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tassilo Horn <tsdh <at> gnu.org>
To: Ship Mints <shipmints <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 76132 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#76132: Clojure-style auto-gensyms for macros
Date: Sun, 09 Feb 2025 09:32:54 +0100
Ship Mints <shipmints <at> gmail.com> writes:

> I prefer a hat ^ prefix as it is easier to read, rather than a dollar
> $ suffix which seems muddled to my eye.

I don't mind what character to use (the macro could even take it as an
argument) but I'd prefer using a suffix simply because there's already
the special prefix _ indicating to the byte-compiler that this variable
is not used intentionally.  You might want to use that capability when
your macro expands to a function which needs to have a certain signature
but your implementation doesn't use all arguments, for example.

Bye,
Tassilo




This bug report was last modified 147 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.