dgkf / R

An experimental reimagining of R
https://dgkf.github.io/R
GNU General Public License v3.0
135 stars 6 forks source link

Suggestion for Naming convention #178

Open sebffischer opened 6 days ago

sebffischer commented 6 days ago

Due to all the interior mutabilty I sometimes get confused whether methods modify an object via interior mutability or whether they clone the object, modify it and return it as a new value.

In pytorch, methods that mutate an object in-place end with an underscore. What do you think about applying this naming convention here as well? For example the Rep<T>::materialize_inplace() method would then be called materialize_()