Signals and Threads cover image

Language design with Leo White

Signals and Threads

00:00

Is There Really Multiple Types of Addition on Integers?

There's essentially no way of hiding this aspect of your implementation. You cannot in any way wrap it up such that the particular choices you made about type classes in the middle of your program aren't exposed. It's sort of anti-modular in a fairly in-your-face way. Addition is maybe not the most compelling example, although I'm sure there are good cases where you really do want to have different forms of addition on what is an underlying level the same type.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app