Implementing operators from other languages in elisp

1 · Shane Mulligan · June 19, 2020, 4 p.m.
Ruby https://en.wikibooks.org/wiki/Ruby%5FProgramming/Syntax/Operators ||= (double pipe) http://www.rubyinside.com/what-rubys-double-pipe-or-equals-really-does-5488.html Useful for initializing with default values. op explanation arity precedence association \vert\vert\eq A \vert\vert\eq B assigns B to A iff A is nil or false Binary 15 Right 1 2 3 4 5 6 7 8 (defmacro ||= (sym value) "Idempotent assignment operator from Ruby" `(progn (if (not (variable-p ',sym)) (setq ,sym ,value)) ,sy...