Fork me on GitHub
Ahmed Hassan11:06:42

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


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.


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.