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

Add data inheritance #227

Closed
evhub opened this issue Feb 28, 2017 · 2 comments
Closed

Add data inheritance #227

evhub opened this issue Feb 28, 2017 · 2 comments

Comments

@evhub
Copy link
Owner

evhub commented Feb 28, 2017

data A(x, y) from B:
    ...

should compile to

class A(namedtuple("A", "x, y"), B):
    __slots__ = ()
    ...
@evhub evhub added the feature label Feb 28, 2017
@evhub evhub added this to the v1.3.0 milestone Feb 28, 2017
@evhub
Copy link
Owner Author

evhub commented Mar 21, 2017

Alternative possible syntax:

data A(x, y) with B:
    ...

@evhub evhub added the resolved label Apr 4, 2017
@evhub evhub modified the milestones: v1.2.3, v1.3.0 Apr 4, 2017
@evhub
Copy link
Owner Author

evhub commented Apr 4, 2017

Implemented in develop using from syntax.

@evhub evhub closed this as completed Apr 4, 2017
@evhub evhub mentioned this issue May 12, 2017
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

1 participant