Hey <@U33H6SB2B> , are you experimenting with unio...
# javascript
e
Hey @turansky , are you experimenting with unions in Seskar?
t
Yes, you can check removed example 😉
✔️ 1
e
I was just looking at the commits!
t
Union properties can work with
assignment
plugin
e
So basically you're overloading the assignment operator via the compiler plugin
t
Yes
✔️ 1
Single problem - you need use
val
instead of
var
It doesn't look natural
e
Why so? Is that a limitation of the compiler side?
👌 1
t
Probably ambigous operation or limitation of plugin
a
I'd like to see :) Where are the experiments?
t
Removed here
thank you color 1
a
Why removing this ?
t
Check finished 🙂
Works fine, but for external properties/parameters we need more compiler/compiler plugin support
thank you color 1
For now looks like we need K2 for fine unions support. Assignment plugin is cool, but it requires
val
for properties, which are mutable in fact. Getter problem is open - experiments required. Waiting for K2 stabilization ;)
e
Yeah it's fine. K2 is the future anyway, not worth investing much time for K1