Closed jakobbotsch closed 4 years ago
Sounds good, we probably also have a few places that could use this notation!
Feel free to open a PR. The only thing I'll ask is that you use (fun _ => v)
instead of constructor
- that alias was only supposed to be for defining Settable
and then I managed to hide even that from the user with settable!
.
In my project I frequently need to update fields of nested records. The best way to do so seems to be something like
which is not particularly readable. Instead I have defined the notation
allowing me to write
What do you think about adding this notation to the library? If it sounds good I can open a PR.
Also thanks for this great project, it has made using records in Coq much more enjoyable!