Common Lisp programming is often presented as “interactive”. In most languages, modifications to your program are applied either by recompiling it and restarting it. In contrast, Common…
Not sure if you’re the author of the linked article, but a description of how the difference between defvar and defparameter is important in a language with a long running modifiable runtime would be useful to audiences not familiar with the topic.
For inside, if you have a script that wants to keep track of the number of widgets made per hour, and you also need a place to define the rate of processing, picking defvar for the former and defparameter for the latter allows you to reload the script in the running instance without losing track of important state. You probably don’t want to reset the value of the widget count when you reload the script, but you might want the value set in the parameter to change
Not sure if you’re the author of the linked article, but a description of how the difference between defvar and defparameter is important in a language with a long running modifiable runtime would be useful to audiences not familiar with the topic.
For inside, if you have a script that wants to keep track of the number of widgets made per hour, and you also need a place to define the rate of processing, picking defvar for the former and defparameter for the latter allows you to reload the script in the running instance without losing track of important state. You probably don’t want to reset the value of the widget count when you reload the script, but you might want the value set in the parameter to change