Summary

I demonstrate an imaginary macro lambda (I call it ilm or γ).

The idea is we want the LM (e.g. Codex) to come up with the code, and run it immediately.

It’s a lambda (anonymous function) for code generation that uses an imaginary macro (imacro) to generate code.

Example

This should generate the necessary code and run it.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
(defmacro ilm (name &rest body)
  "
example: (ilm internet-is-connected-p ())
"
  `(progn
     (eval (imacro ,@body) ,@body)))

;; Some alternative identifiers
;; I chose gamma because it's an upside-down lambda
(defalias  'ilm)
(defalias 'ilmacro 'ilm)
(defalias 'imaginary-lambda-macro 'ilm)
(defalias 'imaginarily 'ilm)

This is a predicate that should return true or false.

1
(ilm internet-is-connected-p ())