amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

No more @WARNING mutation #138

Open amilner42 opened 7 years ago

amilner42 commented 7 years ago

Mutation just isn't worth it, I have some functions which mutate right now, it's just a recipe for pointer bugs. Clean mutation, using R.clone where needed for deep-cloning. We shouldn't be mutation function args either, as those are just pointers to the actual values.