Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004384OCamlOCaml generalpublic2007-09-10 19:052007-11-10 14:04
Assigned To 
PlatformOSOS Version
Product Version3.10+dev 
Target VersionFixed in Version 
Summary0004384: RFE: nested labels syntax for { ... with ... }
DescriptionIn 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
xleroy (administrator)
2007-11-10 14:04

This feature could be nice indeed but seems non-trivial to implement. I'll leave it as a feature wish.

- Issue History
Date Modified Username Field Change
2007-09-10 19:05 nogin New Issue
2007-11-06 15:17 doligez Category Caml-light => OCaml general
2007-11-10 14:04 xleroy Note Added: 0004264
2007-11-10 14:04 xleroy Status new => acknowledged

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker