-
Notifications
You must be signed in to change notification settings - Fork 49
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
Integrate "Bean(...)" Functionality in "include(...)" #1097
Comments
Fine for me. One thing that might be a bit confusing: Normally, the Bean gives you an object while the include gives you a class. |
This is actually not the case, |
I think I prefer |
I was referring to the way you use the returned object. For include, you usually call @ImperatorS79 the question is: do we really want to see that it's a difference? Actually, you might very well implement the beans in JS directly. So maybe we should not even use that term at all and rather call it something like "built-ins". |
We have also included scripts that are used differently. For example our file utilities or the wine engine version strings. |
That's true. |
After our latest changes to the
include(...)
operation the syntax ofBean(...)
andinclude(...)
are very similar to each other. Both operations take an id string and return an object containing the loaded functionality.The only difference between both operations seems to be the composition of the passed id string and whether the returned object was defined in Java or JavaScript. Because of this I think we can integrate the functionality of
Bean
in theinclude
operation. To helpinclude
decide whether the to be included script is defined in Java or JS we can add abean.
prefix to the passed id.So if you want to include the
extractor
bean you would need to call:instead of:
@plata @qparis @ImperatorS79 what do you think?
The text was updated successfully, but these errors were encountered: