Skip to main content

Search

Items tagged with: dlang


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(https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Properties.html), just like #clojure metadata(https://clojure.org/reference/metadata).

I know #dlang has a similar feature where functions can be marked as being pure (https://tour.dlang.org/tour/en/gems/functional-programming), 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.


Code Golf now supports Elixir!

https://code.golf

Discussions: https://discu.eu/q/https://code.golf

#apljk #asm #cobol #cpp #dlang #elixir #pascal #programming #prolog

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

⇧