-
Notifications
You must be signed in to change notification settings - Fork 362
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
Inlining for property accessors #34
Comments
I think the proposal lacks a motivation section. As we all know, the |
Android, for example, benefits greatly from inlining! |
In fact, reified type parameters will now be applicable to property accessors:
Another motivation, as with functions, is to hide some properties from the binary interface of a library. In Kotlin standard library, together with the |
Sounds great! Now let's add it to the text of the KEEP :) |
I'm very excited for reified in properties! |
* Enable `@InlineOnly` properties whose signatures can be changed without affecting the binary compatiblity of a library * Make reified type parameters available for property accessors #34
What about member properties? Can they be inlined in case they are neither |
@konsoletyper If they have no backing fields, the rules should be the same as for functions. Fields are problematic on the JVM because they are private. // cc @max-kammerer |
This would be nice to move an extension function I have to a property (which would make more sense as a property)
|
I found performance-critical loops using |
The feature has been released in Kotlin 1.1, thus I'm closing the KEEP. Do not hesitate to open a YouTrack issue for any additional suggestions. |
Proposal
The text was updated successfully, but these errors were encountered: