-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add classes and objects #537
Comments
And of course the new keyword and the constructor feature. |
Records are what Teal uses to create "classes", what would be the benefit of the new keyword? Remember, Lua doesn't have classes, if you want inheritance you have to set those systems up yourself in lua. There is an entire discussion on how teal should deal with it at #200 |
Because adding new types reduces the number of errors raised by using and creating OOP programming on tl.Adding new keywords makes the construction of the OOP programming system simpler. |
again, records are used to create new types. They will act as classes once/if a good model on how to do inheritance in teal is agreed upon. (Read the linked issue). The only difference between records and classes are their names.
Now, there might be a reason to add |
Closing this as a duplicate of #97 — there are no immediate plans to add class and object primiteves, but they're not discarded either. |
How do I modify the compiler to add a class type and an Object type.
The text was updated successfully, but these errors were encountered: