Skip to content

Questions about control plane / config use case (TLDR: why not (ab)use the engine tag?) #893

Answered by schungx
VorpalBlade asked this question in Q&A
Discussion options

You must be logged in to vote

This is absolutely a legit way to use the tag, which was actually created to avoid having to use closures.

We need closures because you need a way to access the context object inside the functions. It can either be a captured variable in a closure, or some API on the call context.

One pitfall is that you only have one tag and if you want to keep several shared objects you need to put them inside a map inside the tag... Using a closure is much easier.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VorpalBlade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants