<p><pre><code> name: string;
constructor(name: string) {
this.name = name
}
</code></pre>
You don't have to do this in TypeScript either, you can just do<p><pre><code> constructor(public name: string) { }
</code></pre>
Also, the "Empty collections" section doesn't do the same thing, the collections you created in Kotlin are immutable.<p>And the TypeScript ones have the value `undefined` (unfortunate that strictNullChecks doesn't catch things like that <a href="https://github.com/Microsoft/TypeScript/issues/8476" rel="nofollow">https://github.com/Microsoft/TypeScript/issues/8476</a>).<p>And for some nitpicking, please be consistent with your semicolons, either use them or don't use them, but don't mix it randomly like that.
derived from Swift is like Kotlin: <a href="https://github.com/Nilhcem/swift-is-like-kotlin" rel="nofollow">https://github.com/Nilhcem/swift-is-like-kotlin</a>