Fork me on GitHub
#emacs
<
2018-02-28
>
hlolli00:02:28

surprised that this is not allowed in emacs

(let ((cb nil))
  ((or cb 1+) 1))

dpsutton00:02:32

Need to funcall it. It's a lisp-2

hlolli00:02:43

(let ((cb nil))
  (funcall (or cb '1+) 1))

hlolli00:02:32

yup, I took funcall for a ugly twin of apply, or some sort of (unquote fun-symbol)

dpsutton00:02:22

Yeah I don't like the look. But when people get used to it they really like it. Because you can bind a variable and a function to the same signature

dpsutton00:02:38

It's essentially namespaces for different types of lisp types

hlolli00:02:56

this trips me out a lot in emacs, that functions are not symbols.

hlolli00:02:48

clojure can sometimes trip me out too in cases of a macro/function (like the symbol + and #'+) 🙂