Fork me on GitHub
#hoplon
<
2019-06-02
>
Ahmed Hassan11:06:42

When it's better to define defn instead of defelem?

flyboarder20:06:35

any time you want attribute/child argument parsing

👍 4
Ahmed Hassan11:06:31

And should cell be passed as attribute/argument to defelem or defn? or should cell be referred without passing as an argument, because cell is defined as a top level variable similar to def.

flyboarder20:06:48

I’m not sure what you mean here

Ahmed Hassan11:06:02

I think elements would act as pure in former case and non-pure in latter one.