Skip to content

Rename self parameter name to selfPointer#580

Merged
ktoso merged 2 commits intoswiftlang:mainfrom
sidepelican:selfPointer
Mar 4, 2026
Merged

Rename self parameter name to selfPointer#580
ktoso merged 2 commits intoswiftlang:mainfrom
sidepelican:selfPointer

Conversation

@sidepelican
Copy link
Contributor

This is a follow-up to the renaming discussion at:
#572 (comment)

I have changed the parameters described as self: jlong in various locations to selfPointer.

During the process, I felt that SwiftSelfParameter.instance having its own parameter name property was a source of confusion.
In Swift, unlike Go, function receiver names cannot be changed, so the parameter name property is redundant information. Therefore, I have also included a change to remove it.

@sidepelican sidepelican requested a review from ktoso as a code owner March 2, 2026 06:54
@ktoso
Copy link
Collaborator

ktoso commented Mar 4, 2026

Thank you!

@ktoso ktoso merged commit 0b01d82 into swiftlang:main Mar 4, 2026
50 checks passed
@sidepelican sidepelican deleted the selfPointer branch March 4, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants