Join Slack
Hi, what’s the current state of experimental contracts?
# language-evolution
k
Kev
02/01/2024, 4:34 AM
Hi, what’s the current state of experimental contracts?
e
ephemient
02/01/2024, 4:40 AM
https://youtrack.jetbrains.com/issue/KT-56127/K2-Provide-new-stable-syntax-for-contracts
👍 3
👍🏾 1
b
Ben Woodworth
02/02/2024, 1:07 AM
And if you're wondering about stability, the syntax will be changing, but it's binary stable. I read it as being safe to use (in libraries, etc.) as long as you're alright with manually migrating the contract code down the line when the syntax does change. See here:
https://github.com/Kotlin/KEEP/blob/master/proposals/kotlin-contracts.md#compatibility-notice
94
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by