Comment

Comment by timw4mail

The first point is kind of silly: You can make rust-style constructor functions if you want, and have a private constructor to enforce the behavior.

Although it does require some boilerplate, which may seem like pointless extra work.

parent timw4mail 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton