-
Notifications
You must be signed in to change notification settings - Fork 274
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
Inline definitions of modules #42
Comments
Overall LGTM
I think we shouldn't allow users to refer to inline names.
That is annoying. Maybe we can require a newline after Do we really need module options btw? |
Well, this is easily done by not adding inline instances to the global registry.
Yeah, fixing parser would be a better approach.
Initial idea was to create the ability to tweak module behavior on per-call basis. For example, instead of creating separate
|
Allow writing module definitions inside other module definitions, omitting names.
This feature would allow writing less verbose configuration files with fewer entities (so you don't have to look around a lot to understand what is happening). The key point is to require "named entities" only when they are shared between server components (modules).
For example, the following configuration:
could be written like that:
Generic syntax change is from
to
Here "inner" pipeline instance gets some artificial name like
parentname_N
so it can use it as a key to store persistent data.!!! Reordering of configuration directives here may change "artificial names". Can we do something about it?
!!! We need a different way to specify per-call options
Perhaps
Note:
a { dir } b c
is parsed asBut I'm not very sure about the whole idea. Any thougnts?
The text was updated successfully, but these errors were encountered: