Open jackfirth opened 8 years ago
But this would have to recur into the fields, so I think it would require a more general read/write lens anyway, right? Or would prefab-struct-isomorphism-lens
take arguments for handling that, for instance like:
(prefab-struct-isomorphism-lens posn number->string-lens number->string-lens)
You're right. I think maybe this should accept lenses for the fields, and a more general read-write isomorphism would be a separate thing altogether. That seems the most natural way to go about it.
Not sure on naming, but this is the general idea. A more general read/write isomorphism would also be worth looking into.