Skip to content

Instantly share code, notes, and snippets.

@brson
Created October 13, 2012 21:37
Show Gist options
  • Save brson/3886216 to your computer and use it in GitHub Desktop.
Save brson/3886216 to your computer and use it in GitHub Desktop.
14:36 <@brson> ldleworker: it is a possibility and I think it's been discussed before. there is a somewhat similar
notion in the air for accessing common fields of case classes. personally, for this particular case
the implementation of `impl Entity : Positioned` is so obvious that struct embedding seems like
more than necessary. A simple syntactic transformation would do it, and that's why deriving impls
makes more sense to me. (wrt deriving, that is how we expect to implement things like Eq, which are
all boilerplate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment