Comment

Comment by FjordWarden

I understand, but what if I want to use the enums the way they are used in C, as a label for a number, probably as a way to encode some type or another. Sum types of literal numbers are not very practical here because the labels should be part of the API.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton