Get the latest tech news

Open and closed universes (2021)


How to write types that represent choices.

A future version may depend on some other library, for example toml, and you’d have to add a new option to the Error type: A downside is that traits make each choice in an open universe a type, not a value, so operations like equality become harder to define. It isn’t impossible, though: the trait could require a key method which returns a many-strings type.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of universes

universes

Photo of Closed

Closed

Related news:

News photo

Cinematic and gaming universes will continue to collide in 2024 | Deloitte prediction