It would save a lot of boilerplate code – and make lenses a ridiculously useful feature – to have a PPX extension allowing to automatic lenses generation, so that we could write
type car = {
make : string;
model: string;
mileage: int;
} [@@lens]
and have automatically make_lens etc. defined for us.
It would save a lot of boilerplate code – and make lenses a ridiculously useful feature – to have a PPX extension allowing to automatic lenses generation, so that we could write
and have automatically
make_lensetc. defined for us.