starting to wonder if i should just cheat and get all of the (def symbol value) statements from my shitty lisp implementation and then start evaluating so i dont have to think about carrying over the hashmap of functions defined by user in each tuple returned by each recursion haha. or even just store them in a file during runtime and update that file every time a new definition is made hahaha. this feels like cheating or avoiding the whole "dont mutate globals" because you cant in elixir
Conversation
Notices
-
m455@tiny.tilde.website's status on Friday, 16-Feb-2024 14:24:16 UTC m455 -
Thomas (tfb@functional.cafe)'s status on Friday, 16-Feb-2024 14:24:16 UTC Thomas @m455 > this feels like cheating or avoiding the whole "dont mutate globals" because you cant in elixir
I like the technique used by the ML languages here: your variables are immutable, but if you want to make a mutable variable you instead box its value.
Doing that silently under the hood is a classic Lisp implementation trick
Santa Claes πΈπͺππ°π likes this.
-