Gradle has public design specs, we just added to t...
# gradle
a
Gradle has public design specs, we just added to the design spec Kotlin DSL assignment opt-in flags spec. Feel free to leave comments in the doc.
👍 6
👍🏾 1
m
Unpopular opinion: trying to make Kotlin scripts look like their groovy counterparts is actually more confusing than helping for Kotlin users. I'd be happy with plain APIs and
set()
(but also
create("")
instead of
val foo by creating
, etc...). Sure it's more verbose but it's easier to understand and the IDE autocompletes most of the code anyways.
a
Feel free to add that to the doc too 🙂 The engineers working on it now so it is important they know your thoughts.
m
Will do!
h
Isnt there also a proposal in kotlin for an assignment operator convention, which would solve this issue?
m
@Hannes Tenter the proposal is to use the Kotlin compiler plugin for this
h
Ah i See. Instead of waiting for the official convention because it might never Happen ? I hoped that gradle properties are the strong usecase the feature needs to be accepted xD
m
@Hanno not sure if will ever become the default. Every additional language feature has a cost in terms of maintainance and learning curve for newcomers. I've been bitten enough times by
plusAssign
that I'm not super eager to see the questions that
operator fun assign
will bring. But it'd be fun for brainteaser though 😉