TIL that `defvar` in -lisp won't update a variable's value if it's already been set. No wonder I've been getting dates from last week, when I've been trying to get today's.


"The defvar special form is similar to setq in that it sets the value of a variable. It is unlike setq in two ways: first, it only sets the value of the variable if the variable does not already have a value. If the variable already has a value, defvar does not override the existing value. Second, defvar has a documentation string."


· · Web · 1 · 0 · 0

Documentation string on a variable is pretty rad, though.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!