Why not have something like this,<br><br>App(name=value,name1=value1,[name2=(innername1=innervalue1,innername2=innervalue2)])<br><br>This makes clear with readability names with parameters and parameters can be in any order.<br>
<br>e.g For Dial,<br><br>Dial(sipuri="sip://<a href="mailto:username%3Apassword@example.com">username:password@example.com</a>",timeout=600,retry=3,retryinterval=30)<br><br>/Kannaiyan<br><br><br><div class="gmail_quote">
On Tue, Jun 9, 2009 at 7:31 AM, Jared Smith <span dir="ltr"><<a href="mailto:jsmith@digium.com">jsmith@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Eliel and I started a vigorous discussion on the asterisk-dev IRC<br>
channel earlier today regarding the syntax for application parameters in<br>
the built-in help, and I'd like to open up the discussion for more<br>
members of the development community before we agree on a format.<br>
<br>
>From what we've discussed this morning, it appears we have four<br>
different proposed versions of the syntax:<br>
<br>
1) Application([param1][,param2[,param3]])<br>
2) Application([param1[,param2[,param3]]])<br>
3) Application([[param1][,[param2][,[param3]]])<br>
4) Application([param1][,[param2][,[param3]]])<br>
<br>
In this case, we're talking about cases where each parameter is<br>
optional, and is not dependent upon any previous parameters. (For<br>
example, param3 doesn't depend on param2 being set.)<br>
<br>
I'll withhold sharing my personal opinions until you've had a chance to<br>
look over the proposted versions of the syntax above, so as not to taint<br>
your opinions.<br>
<br>
--<br>
Jared Smith<br>
Training Manager<br>
Digium, Inc.<br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>The best things in life are free<br><br>