Hello :slightly_smiling_face:, Is there a style gu...
# codingconventions
s
Hello 🙂, Is there a style guide or convention for how to declare an
infix function
? I wonder what is the officially recommended method, or what is the most used method? 1.
Copy code
infix fun Class.test(something: Something): Class = this.test(something)
2.
Copy code
infix fun Class.test(something: Something): Class = test(something)
3.
Copy code
infix fun Class. test(something: Something): Class { return this. test(something) }
4.
Copy code
infix fun Class.test(something: Something): Class { return test(something) }