Verity :transHaskell::verifiedtransfem: on Nostr: tbh i'd love to see a language that takes optics (lenses/prisms/traversals/...) as ...
tbh i'd love to see a language that takes optics (lenses/prisms/traversals/...) as fundamental, and eschewed the conventional getter/setter dichotomy
see, getters and setters need to be designed for each fundamental type in a rather ad-hoc way, usually with their own syntax and such
the mythical “lvalue” could just be an optic! ... kinda
anyways, i've never been courageous enough to design such a language myself. but i think of it every time i am implementing getters and setters for yet another datatype ...
Published at
2026-09-26 23:20:21 UTCEvent JSON
{
"id": "5982b9dcb6bc23779e38775b70af66109a469fc26390e66a2a846d1620bfdc08",
"pubkey": "1c1e0e6a505440e5ddb0a012a3cce91cfff91c927f2ad0b088853ffbe35dce01",
"created_at": 1790464821,
"kind": 1,
"tags": [
[
"proxy",
"https://tech.lgbt/@monoidmusician/117339902560929241",
"web"
],
[
"proxy",
"https://tech.lgbt/users/monoidmusician/statuses/117339902560929241",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://tech.lgbt/users/monoidmusician/statuses/117339902560929241",
"pink.momostr"
],
[
"-"
]
],
"content": "tbh i'd love to see a language that takes optics (lenses/prisms/traversals/...) as fundamental, and eschewed the conventional getter/setter dichotomy\n\nsee, getters and setters need to be designed for each fundamental type in a rather ad-hoc way, usually with their own syntax and such\n\nthe mythical “lvalue” could just be an optic! ... kinda\n\nanyways, i've never been courageous enough to design such a language myself. but i think of it every time i am implementing getters and setters for yet another datatype ...",
"sig": "fcf9036edaea8cc30dd036fb25de0fb552eb753bc4c6b79aa41da7c6862a40b6f3644b4e851f8721bb9ebe0c249711280a83c60a4736ed53f3501e670b94d393"
}