Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think Kotlin is great. I feel much more fluent when writing Kotlin than I do when writing Java. The thing I really miss though, is checked exceptions. I have no clue which exception types a library function might be throwing unless they're explicitly documented (which is rare). Does anyone know if this is planned to be addressed at some point?


Add exception to the signature, I suppose. At leasy in Java, you can add unchecked exceptions to function signatures.

Checked exceptions are an old idea. Good to see them go away. Just use a “context manager” by passing a callable somewhere.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: