Skip to content

Instantly share code, notes, and snippets.

@mdekstrand
Last active December 11, 2015 00:58
Show Gist options
  • Save mdekstrand/4519748 to your computer and use it in GitHub Desktop.
Save mdekstrand/4519748 to your computer and use it in GitHub Desktop.
Info Need for path-dependent types blog post.
trait InfoNeed {
type DataType
/** Get the web request to fetch data */
def request: WebRequest[DataType]
/** Get the neighbors from some fetched data */
def neighbors(data: DataType): Traversable[Node]
/** Save the data to the data store. */
def save(store: DataStore, data: DataType)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment