Join Nostr
2025-03-15 17:28:47 UTC

Nicolas Martyanoff on Nostr: Let us add DEFAPARAMETER to the long list of features #Emacs Lisp is missing compared ...

Let us add DEFAPARAMETER to the long list of features #Emacs Lisp is missing compared to #CommonLisp. ELisp only has DEFVAR, which does not modify the binding if it already exists. Perfect to keep a state. But for a lot of top-level values, you want DEFPARAMETER, which creates or updates a binding.

Module development with DEFVAR only is really frustrating, forced to manually call SETQ each time you want to change a value.