Skip to content

Static vs dynamic - are they really that different? #169

Answered by arybczak
theGhostJW asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I can see though, a dynamic effect can be implemented via a static effect by just parameterising the static interpreter with a record of functions. So where the run time behaviour of a dynamic effect can be changed by switching the interpreter, the behaviour of the static effect can be changed by switching the record of functions argument.

Correct.

Is there any fundamental differences (user or runtime) in these approaches?

I don't know about fundamental, but with dynamic effects you can easily re-use other effects with reinterpret.

Does the dynamic via static approach just re-implement what goes on in a dynamic effect in a round about way?

Pretty much 🙂 See this vs this.

Replies: 1 comment

Comment options

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