such as `if(isNull(someString)) { someString.lengt...
# getting-started
j
such as
if(isNull(someString)) { someString.length } else { someString.length }
, the first
someString.length
would give an error or something
a
not right now, you need to wait for contracts to make it into the language
why not use a regular
if(someString == null)
?
j
some languages support a falsey null, like
if(null)
and i was adding a simple function to help with that
🤮 1
but yeah you can just null check and its alright
could you point me to info on contracts in kotlin progress?
a
there is not much progress/public information about contracts yet, just https://discuss.kotlinlang.org/t/status-of-kotlin-internal-contracts/6392
j
thx!