Settingdust
10/16/2022, 3:02 AMInt?dmitriy.novozhilov
10/16/2022, 6:32 AMJoffrey
10/17/2022, 1:30 PM+42 anywhere would be different from 42 - and that's not even considering the heresy of overriding -42 (by the way, in those cases it would be called overriding rather than overloading, since these operators already exist for these types)Klitos Kyriacou
10/19/2022, 8:10 AM-2147483648 means -(<tel:2147483648|2147483648>), i.e. it gets parsed as an Int to which the unary operator - is applied, and 2147483648 is not a valid Int. On the other hand, other languages treat negative numbers as literals, i.e. the "-" is itself part of the literal. But not in Kotlin.