Comment

Comment by pasteldream

> Your natural choice in the "OOP style" is to write a lot of boiler plate to point to each different field you want to get/set.

Your natural alternative to lenses in imperative languages is usually to just store a reference or pointer to the part you want to modify. Like a lens, but in-place.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton