Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on May 18, 2017
|
parent
|
context
|
favorite
| on:
Swift is like Kotlin
> Type classes:
https://kotlinlang.org/docs/reference/sealed-classes.html
Sealed classes are an odd/wonky take on sum types, they're not even remotely close to type classes.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Sealed classes are an odd/wonky take on sum types, they're not even remotely close to type classes.