You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I got to the self hosting step, I had a bug that took me a week to track down. It was that whenever a hashmap was in a function and the function was called, it would replace the parameters in the mal function ast hashmap with the data of the arguments that the function was being called with. It happened because of JS's stupid object copying system.
How I found it was by making a function in mal that prints the ast of a mal function.
I want to add this as a test at the function step to help people in the future, but I'm not sure how, because in different languages the asts are stored differently in mal functions.
The text was updated successfully, but these errors were encountered:
When I got to the self hosting step, I had a bug that took me a week to track down. It was that whenever a hashmap was in a function and the function was called, it would replace the parameters in the mal function ast hashmap with the data of the arguments that the function was being called with. It happened because of JS's stupid object copying system.
How I found it was by making a function in mal that prints the ast of a mal function.
I want to add this as a test at the function step to help people in the future, but I'm not sure how, because in different languages the asts are stored differently in mal functions.
The text was updated successfully, but these errors were encountered: