Proposal: Make `-` a part of number literals, so t...
# language-proposals
b
Proposal: Make
-
a part of number literals, so that calls like
-1L.dec()
are the same as
(-1L).dec()
instead of
-(1L.dec())
v
That would change the way existing code runs, thus braking source compatibility in a major way
b
Indeed. Hopefully good tooling can help the migration process. Also hopefully there aren't other silly mistakes like this in the language.
v
Unfortunately migration is irrelevant
Kotlin cannot brake compatibility till it is 2.0
Which I don't see happening in the nearest (5-10) years
m
I thought you might want to mark it as "won't fix" and can agree on resolving it that way. It's probably important to add warnings in documentation on how it works now.
b
Sad; I'm used to Swift breaking compatibility and incrementing major version numbers every year, for the betterment of the language