Comment

Comment by jchw

I dunno if I'd consider having a dummy method on an interface as "elegant", but it does work. A trade-off of keeping the language very simple, for sure.

What I really wish Go had was sum types, Rust style. That'd cover enumerations and more.

parent jchw 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton