-
Couldn't load subscription status.
- Fork 66
RFC: type externname - Method to get an ExternType's name
#129
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
base: master
Are you sure you want to change the base?
Conversation
|
We will not accept any additions to the language that refer to extern types as classes. The choice of changing that language was very conscious to avoid confusion with the idea that language supported some kind of object-oriented programming. You'll need to adjust the RFC to use the right language, and not reference classes. |
I changed it. I didn't even name the C++ function classname, I actually named it |
I think actually it's because I saw this it was called "class" when filtering for Extern Type, that's why I was sticking with "class" probably. |
ExternType's nameExternType's name
|
Fixed the link, oops |
|
Old references to "class" might just be fallout from the rename and aren't intentional to the language's design. At some point |
Ah. That would be better if it's renamed. I was getting confused about But since it's not at the moment, I kept the RFC like so, but I guess I could tweak |
|
Oh |
|
Yes, |
I think |
Yeah, this one is unfortunate, and we should change it before it's more codified as well because, again, these are not "classes" and setting the expectation for Luau programmers that the language has a notion of "class types" right now is misleading at best, and actively harmful at worst. |
Yes #131 |
I attempted this switch on Saturday, however it looks like parsing is still behind a FFlag I've reverted this change for now and will reattempt once the FFlag is removed |
|
I'll clean up the flag now, so that you can do so in this next release. :) |
|
Now, all |
Rendered
I also made an implementation test of it, see a draft luau-lang/luau#1916