Ruckus
09/28/2021, 6:43 PM.=
operator
I'm not sure if this use case will be covered by the deep immutability enhancements that have been mentioned.
The new operator would serve the same purpose to the dot operator that you get with appending =
to other operators (e.g. +=
, /=
, etc.)
Basically, allow replacing things like position = position.copy(y = 10)
with position.=copy(y = 10)
mcpiroman
09/28/2021, 6:47 PMRuckus
09/28/2021, 6:48 PMephemient
09/28/2021, 6:49 PM= .and(mask)
= .or(set)
= .xor(flip)
aren't quite as nice as &=
|=
^=
in other languages, but would be a much welcome improvement from the current state of things in Kotlin, IMOFleshgrinder
09/28/2021, 8:22 PMelect
09/29/2021, 7:18 AMelect
09/29/2021, 7:18 AMelect
09/29/2021, 8:35 AM