skx / yal

Yet another lisp interpreter
GNU General Public License v2.0
16 stars 0 forks source link

Look at "structure" #82

Closed skx closed 1 year ago

skx commented 1 year ago

Hacker news had a link to Zuo recently:

That has support for "struct", which seems to do a bunch of things. Given the following code:

   (struct person name age)

Generates a bunch of things:

More stuff wasn't immediately obvious, but I guess there are setters to match the getters. I guess the complication for implementation would be the creation of the methods, dynamically.