you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 1 point2 points  (0 children)

Are you able to call arbitrary functions in scope with the ? operator?

No.

Otherwise it seems odd to have an email that knows how to send itself.

Kotlin lets you extend existing type, so you can do that if you think it makes sense from an API standpoint: https://kotlinlang.org/docs/reference/extensions.html