← Prev in month ← Prev in thread
Next in thread → Next in month →

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

From
OASIS Issues Tracker <>
Date
2013-09-03T18:14:13+00:00
ID
2132630128.7661378232079900.JavaMail.tomcat@customer-jira
Thread
[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
← Prev in month ← Prev in thread
Next in thread → Next in month →