Best Practices for Mutation with Reactant.jl

Hello,

I have been exploring Reactant.jl and JAX to develop a package for my research project. One thing I noticed about JAX is that it does not really allow in-place mutation of variables. I’ve seen several explanations for this, including that in-place mutation makes it harder to track data flow for automatic differentiation and program transformations.

On the other hand, Reactant.jl seems to support mutation. This makes me wonder: is Reactant.jl generally okay with in-place operations, or is mutation intended only when necessary?

Thanks in advance for any guidance!

Yeah in place operations are totally fine with Reactant!