And all access to object values needs to be changed to access data.value. This will probably be a little slower. In the future, if it becomes a problem, it can be removed even easier than it is to add.
This also makes writing the streamlined_get_set stuff easier, since values will be separate from the class access.
If a user passes an incomplete table, it will be completed by the defaults. (Note to self: Does MoonScript have table merging? If so, use that, else, check and see if lume has it.)
Use:
Function:
And all access to object values needs to be changed to access data.value. This will probably be a little slower. In the future, if it becomes a problem, it can be removed even easier than it is to add.
This also makes writing the streamlined_get_set stuff easier, since values will be separate from the class access.
If a user passes an incomplete table, it will be completed by the defaults. (Note to self: Does MoonScript have table merging? If so, use that, else, check and see if lume has it.)