There are already infix functions, which is a huge...
# language-proposals
g
There are already infix functions, which is a huge benefit for DSLs Recently, I tried the Kotlin-CSS library and stumbled over:
Copy code
body {
    width = 5.px
}
Wouldn't is be useful, also to have
postfix
and
prefix
functions like:
Copy code
postfix fun Int.px(): LinearDimension

body {
    width = 5 px
}
I think this would improve the DSL support.
2
👎 4
👍 1