I have not found any use of this name field anywhere. Perhaps just remove it completely? Or perhaps it could be used to provide some better error messages in some places.
Oh, wow. How did I never notice this? That field must have come along when I ported the VM from Wren and I never noticed that I wasn't using the name in error messages anymore.
When defining the
ClassCompiler
struct in chapter 28, there is aname
field.I have not found any use of this
name
field anywhere. Perhaps just remove it completely? Or perhaps it could be used to provide some better error messages in some places.