Join Nostr
2026-09-26 23:49:10 UTC
in reply to

Verity :transHaskell:​:verifiedtransfem: on Nostr: oh! i was talking about optics in the Haskell sense they're a way to bundle getters ...

oh! i was talking about optics in the Haskell sense

they're a way to bundle getters and setters into a pair, that lets you get at and modify nested fields easily in a functional context (where you have to return the updated value)

https://en.wikibooks.org/wiki/Haskell/Lenses_and_functional_references

... but a CPU based on light is also a fascinating idea haha