kennycason
09/13/2016, 6:06 PMif (optional != null) {
// do a few random things with optional
}
I’m aware you can do optional?.someFunction but it doesn’t also handle my needs
I’m looking for something like if (optional.isPresent) {} or even if (optional?) {}
The one thing that’s stopping me from completely enjoying Kotlin’s null-safety, is having to still type null in these checks.