Comment

Comment by timClicks

> The largest benefit of properties is replacing field use, which has a massive amount of drawbacks, with methods instead.

Could someone please flesh this out for me? I've always found getters and setters to be promoted by people following standard practice, without actually thinking about the underlying principles.

parent timClicks 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton