Open in app

Sign In

Write

Sign In

Elias Court
Elias Court

Home

About

Sep 3, 2018

Phantom types: What are they good for?

What is a phantom type? A phantom type is a piece of type information that has no runtime meaning. We use phantom types to add type information where we have no need for a runtime representation. Phantom types allow us to increase type-safety and even better organize code! Why should I care about type safety? There are two main reasons that come…

Programming

2 min read

Programming

2 min read

Elias Court

Elias Court

Software Engineer @ Kind Consulting Limited

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech