Skip to content

[JExtract] Import initializers as static methods #245

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

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 4, 2025

Preparation for importing failable initializers. Since Java 'new' operator can't express 'nil' result from failable initializers importing initializer as 'init' static method is a reasonable choice.

Preparation for importing failable initializers. Since Java 'new'
operator can't express 'nil' result from failable initializers importing
initializer as 'init' static method is a reasonable choice.
Copy link
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far. I’m quite happy to move back to init functions, especially that we have some functional reason to do so now

@rintaro rintaro marked this pull request as ready for review June 4, 2025 22:30
@rintaro rintaro merged commit 5d58ecc into swiftlang:main Jun 4, 2025
12 checks passed
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