DMN 1.4 RTF Avatar
  1. OMG Issue

DMN14 — The result of product([]) is not defined

  • Key: DMN14-141
  • Status: open  
  • Source: Montera Pty Ltd ( Greg McCreath)
  • Summary:

    The product() function may take a list but it is not defined what the return value is when the list is empty.

    It could be zero, or could be null. Other list function return null like `median( [ ] ) = null`, and `stddev( [ ] ) = null`, so it seems reasonable to make `product([]) = null`, but likely more business friendly to make `product([]) = 0`. I'd go for the latte.

  • Reported: DMN 1.3 — Fri, 19 Feb 2021 10:29 GMT
  • Updated: Wed, 21 Apr 2021 00:53 GMT