You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Array class has almost exactly the same functionality and implementation as std::vector, except that it requires manual cleanup via clear() instead of automatic destruction, and lacks various C++ conveniences like constructors and support for (element : array) syntax. Would you be open to PRs that replace Array usage with std::vector?
Pros: shorter, more idiomatic, somewhat safer C++ code
Cons: would change the C++ API. Are you committed to preserving compatibility with the current API?
The text was updated successfully, but these errors were encountered:
I don't really like the whole constructor/destructor machinery, but seeing as I have less and less time to dedicate to the project, this change might make it mora approachable to new contributors.
So, I'm open to "modernizing" the code as long as our benchmarks don't suffer significantly.
The
Array
class has almost exactly the same functionality and implementation asstd::vector
, except that it requires manual cleanup viaclear()
instead of automatic destruction, and lacks various C++ conveniences like constructors and supportfor (element : array)
syntax. Would you be open to PRs that replaceArray
usage withstd::vector
?Pros: shorter, more idiomatic, somewhat safer C++ code
Cons: would change the C++ API. Are you committed to preserving compatibility with the current API?
The text was updated successfully, but these errors were encountered: