Comment

Comment by tthisk

Lenses are type-safe, so if you care about type-safety then object/json paths are not really a feasible option. Regarding the boilerplate in this post, that is mainly a side-effect of demonstrating how lenses work. If you use a library like monocle-ts the boilerplate is reduced drastically (see: https://github.com/gcanti/monocle-ts).
parent tthisk 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton