Skip to content

[JExtract] Import initializers as static methods#245

Merged
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:jextract-init-as-method
Jun 4, 2025
Merged

[JExtract] Import initializers as static methods#245
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:jextract-init-as-method

Conversation

@rintaro
Copy link
Copy Markdown
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
Copy Markdown
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