-
Notifications
You must be signed in to change notification settings - Fork 5
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
Find a way to put instances into their own slice #43
Comments
One idea is to add dependencies to all slices where a class or method is mentioned. |
Ok, so if we do the above we again get giant ugly balls of code because instances use declarations and declarations if they mention methods depend on all instances. |
We pair each instance either with the class or with the datatype if the class it builtin. |
Another approach is to use |
Done with fb94f99 and a series of fixes after that. |
We put every instance into its own slice. The problem is that the instance depends on both the class it is of and the type it is for. When compiling we would have to import the instance in either one so that it is propagated. But this leads to cyclic imports. Maybe instances really need their own very special treatment.
The text was updated successfully, but these errors were encountered: