Open wongjiahau opened 5 years ago
Example:
Shape = tags.case(circle.radius(Float)) case(square.side(Float))
(this Shape).increaseSize =
this.
case(circle.as(c)):
(c.radius(.+(10)))
case(square.as(s)):
(s.side(.+(20)))
This is because we also want to harness the power of lambda setter.
But somehow this might caused some bug.