Skip to content
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

Consider adding XMLAppendable.invoke #702

Open
dmcg opened this issue Oct 30, 2024 · 0 comments
Open

Consider adding XMLAppendable.invoke #702

dmcg opened this issue Oct 30, 2024 · 0 comments

Comments

@dmcg
Copy link

dmcg commented Oct 30, 2024

Just spitballing here, but converting a build.gradle to build.gradle.kts, having to add all the applys is a bit annoying.

operator fun <T: XMLAppendable> T.invoke(block: T.() -> Unit) = this.apply(block)

lets me leave them out, but seems safe in other contexts?

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

No branches or pull requests

1 participant