Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensible records #6066

Closed
vicuna opened this issue Jul 7, 2013 · 1 comment
Closed

extensible records #6066

vicuna opened this issue Jul 7, 2013 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jul 7, 2013

Original bug ID: 6066
Reporter: meyer
Status: acknowledged (set by @damiendoligez on 2014-08-21T09:46:16Z)
Resolution: open
Priority: low
Severity: feature
Category: typing
Monitored by: @gasche @ygrek @jberdine @hcarty

Bug description

It would be good to support extensible records in the same way as inheritance hierarchy with objects, with the difference that no dynamic dispatch would be involved, thus making them more efficient.

The syntax would be:

record foo = { x : int; y : int }
(* will type to: <@ x : int; y : int ... > *)
record bar = { foo with z : int  }
(* will type to: <@ x : int; y : int; z : int; ... > *)
@mshinwell
Copy link
Contributor

There have been no comments since 2013, so closing. If the feature is desired and someone has the resources to implement it, please produce an RFC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants