-
-
Notifications
You must be signed in to change notification settings - Fork 419
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 SourceLoc.type_name method, showing the name of the containing type. #2643
Conversation
8bcdf42
to
d88cfb0
Compare
What do you think about using |
Or maybe |
If we use I'm okay with using |
I'd personally prefer |
Annoying for it to be a breaking change but, we are pre-1.0. I upvoted type_name and method_name. |
SourceLoc already shows the method name of the __loc object, but not the type name. Adding the type name is a logical next step, since it is available. The method is named typ, because type is a reserved keyword that cannot be used as a method name.
Okay, updated with the different name, and added a manual changelog entry. |
d88cfb0
to
7cbf92c
Compare
…pe. (ponylang#2643) * Add SourceLoc.typ method, showing the name of the containing type. SourceLoc already shows the method name of the __loc object, but not the type name. Adding the type name is a logical next step, since it is available. The method is named typ, because type is a reserved keyword that cannot be used as a method name. * Rename SourceLoc.{typ, method} as {type_name, method_name}. * Add manual changelog entry for PR ponylang#2643.
SourceLoc already shows the method name of the __loc object,
but not the type name. Adding the type name is a logical next step,
since it is available.
EDIT:
Also renames
method
asmethod_name
.