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

Reduce data layer accidental complexity #34

Open
neutropolis opened this issue Dec 11, 2017 · 0 comments
Open

Reduce data layer accidental complexity #34

neutropolis opened this issue Dec 11, 2017 · 0 comments

Comments

@neutropolis
Copy link
Member

When defining an association between entities, we need something like this:

trait Person[Pr] {
  type P[_]
  type Ad; val Address: Address[Ad]
  val optAddress: OptionalAlg.Aux[P, Address.P, Ad]
}

This is very noisy. One of the ideas that we'd like to apply is the next one:

trait Person[Pr] {
  type P[_]
  type Ad: Address
  val optAddress: OptionalAlg.Aux[P, Ad.P, Ad]
}

However, at first glance, it seems to be impossible to implement this idea with macros. Is there any other way to get something similar to this?

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

No branches or pull requests

1 participant