Learn the difference between dynamic variables and lexical variables in Lisp — in just 1 minute.
Modern Lisp mainly uses lexical variables, where values are determined by where they are written in the code.
But early Lisp used dynamic variables, where values depend on where they are called.
In this video, you'll see:
What dynamic variables are
How they differ from lexical variables
How to use them in ISLisp
When they are still useful today
💡 Dynamic variables are not commonly used today, but they are helpful for:
Shared configuration
Temporary global state
#Lisp #Programming #FunctionalProgramming #ISLisp #Coding #LearnToCode #ComputerScience