[OpenAjaxIDE] Multiple returns question when not using paramName and paramValue
Bertrand Le Roy
Bertrand.Le.Roy at microsoft.com
Wed Sep 10 12:58:01 PDT 2008
Yes, it would be bad practice, but we should probably allow it.
From: ide-bounces at openajax.org [mailto:ide-bounces at openajax.org] On Behalf Of Lori Hylan-Cho
Sent: Wednesday, September 10, 2008 12:23 PM
To: Jon Ferraiolo; ide at openajax.org
Subject: Re: [OpenAjaxIDE] Multiple returns question when not using paramName and paramValue
Yes, my assumption was that multiple return values would be allowed for non-factory methods as well, though it's more likely that the return types would be different (e.g., "String" and "null").
From: ide-bounces at openajax.org [mailto:ide-bounces at openajax.org] On Behalf Of Jon Ferraiolo
Sent: Wednesday, September 10, 2008 2:14 PM
To: ide at openajax.org
Subject: [OpenAjaxIDE] Multiple returns question when not using paramName and paramValue
Is the following allowed:
<method name="foo"...>
...
<return* datatype="Object">
<description>Returns a JavaScript object with these properties...</description>
</return*>
<return* datatype="Object">
<description>Returns a JavaScript object with these other properties...</description>
</return*>
</method>
(where return* is a placeholder for whatever tagname we decide on)
My question is whether it is allowed to have multiple return element without using paramName and paramValue. My guess is yes, that is indeed allowed, and the IDE just needs to deal with it somehow, where one option would be to display all of the possible return types in some sort of concatenated manner (e.g., first return at top, last return at bottom).
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/ide/attachments/20080910/35fc27c7/attachment.html
More information about the IDE
mailing list