sometimes you could want to assign the same value ...
# announcements
r
sometimes you could want to assign the same value to different variables, or using a method such
(if (cond) a else b).foo()
. Of course you can and the
.foo()
in each branch and will work, but then you will be duplicating code. I’ve seen this language behaviour previously, and I think it’s pretty cool