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

Field accessors/updaters #57

Closed
4 tasks
rolyp opened this issue Jan 31, 2019 · 1 comment
Closed
4 tasks

Field accessors/updaters #57

rolyp opened this issue Jan 31, 2019 · 1 comment

Comments

@rolyp
Copy link
Collaborator

rolyp commented Jan 31, 2019

Data type constructors should automatically introduce projections for extracting field values, as well as some kind of field update notation. This feature potentially interacts with #48 because fields of different constructors may have the same name - in Haskell this would be an error, but we might want to treat the duplicate field like an overloaded function/implicit typeclass. Ideally such accessors/updaters would be first-class.

  • formalise as part of implementation language
  • generate as part of datatype
  • evaluation rules
  • slicing rules
@rolyp rolyp changed the title Projection functions Field accessors/updaters Nov 21, 2019
@rolyp
Copy link
Collaborator Author

rolyp commented Oct 14, 2022

Closed as no longer relevant

@rolyp rolyp closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Rejected
Development

No branches or pull requests

1 participant