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

Sparrow interfaces #34

Open
lucteo opened this issue Jan 22, 2017 · 0 comments
Open

Sparrow interfaces #34

lucteo opened this issue Jan 22, 2017 · 0 comments

Comments

@lucteo
Copy link
Contributor

lucteo commented Jan 22, 2017

We need to implement some kind of "interfaces" to be able to decouple different part of the application.

An interface, similar to a Java interface, is a collection of function pointers. We can have an unknown implementor of these functions; the callers will just use the interface directly, without knowing who implements them

This needs to work nicely with concept. Each time we declare an interface, we should also generate an implicit concept for the interface. This way, we may use the interface in static contexts, where the implementor is known at compile-time, thus contributing to faster code.

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