-
Notifications
You must be signed in to change notification settings - Fork 35
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
simplify the regorus API #36
Comments
Great idea. Do you want to take a stab at it? |
I tried a bit and the first part (storing |
I've taken a pass at simplifying the API: Line 14 in d69b413
Note, there are opportunities for optimizations and refactor/simplification/cleanup. The API will change in future. |
#43 does away with lifetimes. This will also allow holding on to various objects. Note: The API is not finalized yet. |
@eric-therond |
I suppose I have to use |
Thank you. Do let me know how it turns out. I want to make the Engine API support your use case nicely as well. |
Hello
I am facing troubles integrating regorus into an existing project mainly because of references to
modules
/schedule
in theinterpreter
.Because of this and the
modules
/schedule
lifetimes I need to refactor my project to call the regorus API (like in test cases) and then to have a reference to theinterpreter
that is passed through functions of my project that need it (instead of storing theinterpreter
instance into a struct).What do you think about "to hide" the complexity of the API (create the
Sources
,Parse
andAnalyze
them, ...) and to store everything (struct instances not references) into theinterpreter
? something like that:The text was updated successfully, but these errors were encountered: