Hi! > I would rather discourage usage of references. Since PHP 7 the cost of > breaking cow isn't as expensive anymore, but receiving values by value > and returning by value is more idiomatic imo. Using objects can be more > efficient.
Objects are kind of overkill when you just need a modifyable array. And copying an array when you just need to add one value to a K-size array is still not a good idea for many apps. O(n) vs O(n^2) still matters. One should definitely be careful not to overuse refs, but there are still valid cases for using them. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php