Thread:Extension talk:Arrays/Submitted patch for new function: arraysum/reply (2)

Hi Danwe,

I didn't think about that solution. You're right, the only advantage about adding the parserfunction is that, since it uses native PHP function http://php.net/manual/en/function.array-sum.php (which seems to be resilient to errors, as far as I have tested), if some inputs are not numbers, it will simply work with the ones which are. But this can be a problem otherwise as well, since it can make difficult to find input errors. No strong opinion.