kanaka / mal

mal - Make a Lisp
Other
10k stars 2.53k forks source link

Apparently in step 3 'env' is a class or structure type, not an object #636

Closed albertvanderhorst closed 1 week ago

albertvanderhorst commented 1 year ago

In step 3 there is talking about an "env object". It would be clearer of object is replaced by "instance of an environment"

wasamasa commented 1 week ago

I don't get why environments would get this treatment, but the reader in step 1 wouldn't. An object can mean one of the following things, depending on your programming language:

kanaka commented 1 week ago

I don't have a strong opinion, but I think I'll stick with object for now. The goal of the guide is for learning and not to be a precise reference. For beginners that are using common languages, object is probably the most clear term. For others using less common languages with alternate paradigms, that likely indicates they are more advanced developers and they should be able to easily translate "object" to whatever that analog is in the language they are using.