-
Notifications
You must be signed in to change notification settings - Fork 411
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
Remove 'by' property setter helper function #2706
Conversation
…ser matching usage in gradle.kts files)
Not sure why these methods were introduced (the PR itself is huge, #1194), but I agree that it can be confused with Kotlin's I'm ready to approve it once it has been rebased and contains no changes from other PRs, so let's wait for the other ones to be merged/closed first |
Use |
That's not part of the DSL though, and I honestly fail to see what value it brings. If it's considered to be a good practice, could you link to examples/docs/etc?
|
Alright, I haven't found strong evidence for using |
Are you thinking about how you can do |
…' into feat/move_tasks_into_task_package
…ckage' into feat/remove_property_by_setter # Conflicts: # runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaConfigurationSerializableTest.kt
Moved to new independent PR: #2834 |
Part of #2700
I found these extension functions very confusing. I'm not sure what their purpose is. Do they only rename an existing function?
It's confusing because 'by' is already a Kotlin keyword for delegation, but these extension functions don't do anything with delegation. I think using the normal
.set()
function makes the code more readable and understandable because.set()
is a common Gradle function.This PR includes changes from