Also `!in` -> `is not in`.
# language-proposals
m
Also
!in
->
is not in
.
5
g
plus 1 million to this. errors caused by a misread/mis-written bang are the worst and totally stupid in 2017
My dream language simply has
not
as a keyword
👍 2
b
cough VB cough
e
create an issue on youtrack, we'll vote it
b
I don't want Kotlin to be more like Visual Basic :<
f
Visual Basic's nonsensical verbosity is bad in most cases. This is probably not one of them 😛
b
I'll remind you of that when newcomers are debating whether to use
is not Nothing
or
!= null
, or questioning why
is not null
doesn't work :p
g
I don't think we want to touch the semantics of
is
, I think mg6maciej was simply using that for verbosity. I think
a !in b
becomes
a not in b
, where
not
is highlighted by your editor in nice big blue or orange colour.
m
Or #FF0000...
Did you know you can do that with colors on Slack? 🙂
Guess what's the reason library designers add
isNotEmpty
in addition to
isEmpty
? Because
list.isNotEmpty()
more readable than
!list.isEmpty()
not list.isEmpty()
wouldn't have such problems.
b
🤔