I can't seem to edit my above message
Alternative proposal to
infix
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
Copy code
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
}