You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has been remarkably little enthusiasm for this change over the past nine years.
If this were implemented there would need to be some sort of check to ensure that a given field was not specified more than once in a given declaration.
@lwhite thinks there may be some other nasty case here, but cannot remember what.
This feature request corresponds exactly to GPR: #291. I am not sure if it make sense to close this issue when the github pull request is still open.
If we were to close the pull request, I think it would also be worthwile to somehow track the fact that this feature is more difficult to get right that it may appear, as illustrated in the github PR.
Ah, there is a GPR. I think it's fine to close these in favour of the GPRs. It only serves to waste time when looking through Mantis items finding things to fix and discovering in the comments that development is already occurring.
Original bug ID: 4384
Reporter: nogin
Status: closed (set by @mshinwell on 2016-12-08T16:28:01Z)
Resolution: duplicate
Priority: normal
Severity: feature
Version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: ertai @yakobowski @alainfrisch
Bug description
In I have a nested record type and want to override a field in an interior record, I have to write something like:
{ r with field = { r.field with nested_field = expr }}
It would have been nice if a syntactic shortcut
{ r with field.nested_field = expr }
was available. I could of course always use camlp4, but it was nice if this was a part of the "official" syntax.
The text was updated successfully, but these errors were encountered: