You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Hussain Towaileb (JIRA)" <ji...@apache.org> on 2019/07/10 13:54:00 UTC

[jira] [Resolved] (ASTERIXDB-2608) Don't use VARARGS when the number of arguments is known

     [ https://issues.apache.org/jira/browse/ASTERIXDB-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hussain Towaileb resolved ASTERIXDB-2608.
-----------------------------------------
    Resolution: Fixed

> Don't use VARARGS when the number of arguments is known
> -------------------------------------------------------
>
>                 Key: ASTERIXDB-2608
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2608
>             Project: Apache AsterixDB
>          Issue Type: Task
>          Components: FUN - Functions, TEST - Test Framework
>    Affects Versions: 0.9.4
>            Reporter: Hussain Towaileb
>            Assignee: Hussain Towaileb
>            Priority: Minor
>             Fix For: 0.9.5
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)