OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Created: (ODATA-500) Require function/action overloads to differ by ordered set of parameter types


Require function/action overloads to differ by ordered set of parameter types
-----------------------------------------------------------------------------

                 Key: ODATA-500
                 URL: http://tools.oasis-open.org/issues/browse/ODATA-500
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Bug
          Components: OData CSDL
    Affects Versions: V4.0_CS
         Environment: [Proposed]
            Reporter: Michael Pizzo
             Fix For: V4.0_ERRATA01


[CSDL] does function overload resolution by the unordered set of parameter names. Most languages do function overload resolution according to the ordered set of parameter types.

Currently, [CSDL] allows two function overloads with different parameter names to have the same types:

<Function Name="Evaluate" ReturnType="Integer">
 <Parameter Name="Input" Type="Edm.Integer"/>
</Function>
<Function Name="Evaluate" ReturnType="Integer">
 <Parameter Name="Variable" Type="Edm.Integer"/>
</Function>

This doesn't add significant value, could be confusing, and would not be supported in most programming languages.

It is okay for OData to be more restrictive than conventional programming languages, but having it arbitrarily less restrictive makes it difficult to expose a client side programming model in a conventional language.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]