janvladimirmostert
09/04/2020, 10:24 AMinfix
notation with default value is prefix
/ postfix
notation, even if it's limited to DSLs only
so in the above scenario, i would be able to define
prefix fun postgresql.WORD0(): postgresql {
return this
}
postfix fun postgresql.WORD1(): postgresql {
return this
}
postfix fun postgresql.WORD2(): postgresql {
return this
}
postfix fun postgresql.WORD3(): postgresql {
return this
}
and then chain them
WORD0 WORD1 WORD2 WORD3 WORD3 WORD3
that being said, postfix
kinda seems like infix
with a default value of Unit