guenther
05/05/2018, 6:09 PMdimension val Int.px: MyDimensionedNumber get() = MyDimensionedNumber(this, "px")
dimension operator val Int.unaryRem: MyDimensionedNumber get() = MyDimensionedNumber(this, "%")
Then instead of using things like:
100.px
100.pct
This can be done:
100px
100%
guenther
05/05/2018, 6:12 PMorangy
guenther
05/05/2018, 8:55 PMorangy
<div>
but have to use kotlinx.html and write as div { }
. If we were to support all syntaxes of all languages I don’t think it would be comprehensible language.guenther
05/06/2018, 5:13 PM