When testing Julia functions I sometimes want to check that none of the arguments are unintentionally mutated. It’s a bit labour intensive at the moment: I write code to backup the arguments via
copy, call the function, compare arguments with their backups.
Is there a macro that can do that for me? Something like
@checkargsnotmutated myfunction(arg1, arg2, arg3).
Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message ) (More Info)