Kotlin - Void vs. Unit vs. Nothing : <p>Kotlin has three types that are very similar in nature:</p>

<ul>
<li><code>Void</code></li>
<li><code>Unit</code></li>
<li><code>Nothing</code></li>
</ul>

<p>It almost seems like they're making the JavaScript mistake:</p>

<ul>
<li><code>null</code></li>
<li><code>undefined</code></li>
<li><code>void(0)</code></li>
</ul>

<p>Assuming that they <em>haven't</em> fallen into the same mistake, what are they all for, and how do they differ?</p>
