Comment

Comment by throwaway17_17

I know this wasn’t the crux of your post, but do you find that you primarily look at types as puzzles in a majority of your code? I have a fundamentally different view and find other perspectives interesting when thinking about language design.

As a separate point, I think this is an excellent example of making invalid states unrepresentable.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton