Comment

Comment by masklinn

> Go enums are the same as in every single other language. After all, all an enum does is count. There isn't anything more you can do with it.

You may want to meet a modern language one day. Or hell not even a modern language, even a shit one like Java.

As it turns out there are languages where you can define an

   enum foo { bar, baz }
and when you type a parameter as a `foo` you're not at risk of getting 69 or 4328.
parent masklinn 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton