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

Using service as lone argument #15

Open
holgerl opened this issue Oct 5, 2021 · 0 comments
Open

Using service as lone argument #15

holgerl opened this issue Oct 5, 2021 · 0 comments

Comments

@holgerl
Copy link
Owner

holgerl commented Oct 5, 2021

When invokining an action on a service, the service can be named alone as the first term:

MyService myAction 1

Should it not then be possible to use it alone as an argument:

@ var foo = MyService
foo myAction 2 // Does not work

It already works if is written with the . action on @:

@ var foo = (@ . MyService)

The rule can be that when naming a service or variable alone, it is searched for in the current scope hierachy (the same effect as using @ . <name>.

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