Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created February 11, 2020 07:29
Show Gist options
  • Save lordcodes/157759b97ebe4796152f80512ec88202 to your computer and use it in GitHub Desktop.
Save lordcodes/157759b97ebe4796152f80512ec88202 to your computer and use it in GitHub Desktop.
Code for my article "Enforcing type safety of IDs in Kotlin"
data class MessageId(val raw: UUID)
data class ChatId(val raw: String)
data class PersonId(val raw: Long)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment