-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
When a form, like (inc 1)
gets evaluated, it happens in three steps:
- every element of the list is evaluated ... that means
inc
gets evaluated and1
gets evaluated.inc
is a symbol and it will evaluate to what it is bound to ... which is a function. and1
will evaluate to1
- the function that
inc
evaluated to is called with1
as the actual parameter - the return value of the function is what the form evaluates to
Now .. this library isn't showing ll of this evaluation trace currently. We specifically skip the evaluation of inc
and 1
because it isn't interesting. And that's a good thing. Otherwise, the evaluation trace shown in re-frame-10x
would be too noisy. And anyway, how would we indicate that inc
is a function?
So ... our current approach is very understandable ... but it is inaccurate by omission.
However ... there might be cases, (when using this library outside of the re-frame-10x
setting, where we would want to show ALL the trace, not the simplified version. Perhaps in a situation where we are trying to teach ClojureScript. So we might want to be able to configure the generation of trace to include or exclude these noisy bits. OR produce all the trace all the time, but tag some of it as "noisy" so it can, optionally, be filtered out of what is shown to the experienced users in re-frame-10x
.