Comment

Comment by quietbritishjim

That doesn't work if you are writing a library where users of the library are able to implement their own event types.

Even for a self-contained code base, it's a pain compared to a type that just works with any current or future derived class.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton