Comment

Comment by qsort

Only tangentially related, but what's the point of a static class block? What problem does it solve that's not covered by either the class constructor or a static const? Doesn't it introduce a weird (stateful!) computation that's hard to reason about?

There's probably a use-case I'm missing, because intuitively I'd automatically classify it as bad a practice.

parent qsort 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton