Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2608

Don't use VARARGS when the number of arguments is known

    XMLWordPrintableJSON

    Details

      Description

      Some functions are using type VARARGS when the number of arguments is variable, but known. For example, a function can be 3 or 4 arguments.

       

      For those cases, the function should have different instances of type computers handling this, one for each number of arguments. Having VARARGS will allow the function to be called with any number of arguments, this is not ideal.

       

      VARARGS should only be used when the function has unknown number of arguments, for example, 1, 2, 3, ... n, n is unknown.

        Attachments

          Activity

            People

            • Assignee:
              HussainHT Hussain Towaileb
              Reporter:
              HussainHT Hussain Towaileb
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: