There is no difference between `check` and `requir...
# announcements
a
There is no difference between
check
and
require
in kotlin
Preconditions.kt
😕
d
akbarsha03: Yes there is.
check
throws
IllegalStateException
,
require
throws
IllegalArgumentException
.
👍 1
a
Good catch! My mind just skipped it as it was starting with
IllegalSomeException
Indeed there is a lot of discrepancies hidden inside… uffff