I can't seem to edit my above message Alternative ...
# language-proposals
j
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
}
and then chain them
Copy code
WORD0 WORD1 WORD2 WORD3 WORD3 WORD3
that being said,
postfix
kinda seems like
infix
with a default value of
Unit