https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
e

elect

01/26/2023, 10:29 AM
is there already a ticket about negating infix calls at the function name rather than at the receiver? ie,
NavInput._DpadLeft !_isTest readMode
❤️ 1
e

elect

01/26/2023, 10:31 AM
thanks
d

Davio

02/01/2023, 11:56 AM
Obviously it is up to library maintainers whether to want to offer the negated methods themselves. Infix is mainly used for enhanced readability and a isNot b is in my opinion more readable than a !is b
1
You could always still do !a.is(b) without the infix notation
4 Views