Skip to main content

I just discovered this novel #emacs #emacslisp #elisp feature:

As part of their definitions, functions can be declared as being pure and side-effect free. This shows up in *Help* buffers and is also used by the compiler for optimisation. These types of declarations are associated with the symbol as opposed to the function value(, just like #clojure metadata(

I know #dlang has a similar feature where functions can be marked as being pure (, but I haven't seen it anywhere else. I suppose #rust immutable references are kind of similar too, although that's stretching it.

Are there any there any other cool or novel features in elisp?

An Emacs frame with two windows. The upper window contains a buffer showing the definition of s-join and the lower window contains a *Help* buffer describing s-join.

Este sitio web utiliza cookies. Si continúa navegando por este sitio web, usted acepta el uso de las cookies.