It is kind of confusing. Because first you said that with defvar you cannot reassign a new value if it already have a value but then in the relp you were able to assign a new value to a defvar that already had a value. Could you explain a little bit further. Thanks.
At the beginning when I reassign with defvar and defparameter to show that in one case the value doesn't change while in the other it does, they are two different shell. In the end, when I can reassign the value with defvar, I use mkunbound before. defvar doesn't throw errors, but the new value is ignored if there is already one
As someone currently starting with CL, this is very useful. Thanks a lot!
Thanks for the feedback!
Happy I found your channel, great content on CL, thank you very much!
Thanks for the nice comment!
It is kind of confusing. Because first you said that with defvar you cannot reassign a new value if it already have a value but then in the relp you were able to assign a new value to a defvar that already had a value. Could you explain a little bit further. Thanks.
At the beginning when I reassign with defvar and defparameter to show that in one case the value doesn't change while in the other it does, they are two different shell.
In the end, when I can reassign the value with defvar, I use mkunbound before.
defvar doesn't throw errors, but the new value is ignored if there is already one