Back to List

What is Nothing Type in Kotlin?

Dec 18, 2017
35 Views
Nothing type has no instances. You can use Nothing to represent “a value that never exists”: for example, if a function has the return type of Nothing, it means that it never returns (always throws an exception).
Comments
avatar
To join the discussion, simply log in with your Google or Facebook account.

How it works:

  1. Click one of the login buttons above
  2. You'll be redirected to the authorization page
  3. After logging in, you'll be returned to the forum
  4. Your guest account will be automatically created if it's your first time

© APSense LTD. All-in-One Business Hub. All Rights Reserved. This forum service is provided by APSense.com