Our chosen language is Lisp. The code example demonstrates how to use structs to group data together. Here’s the full translation:
Go’s structs are typed collections of fields. They’re useful for grouping data together to form records.
new-person constructs a new person struct with the given name.
This function safely returns a pointer to a local variable. It will only be cleaned up by the garbage collector when there are no active references to it.
To run the program, execute the main function.
This will output:
Now that we can run and build basic Lisp programs, let’s learn more about the language.