[Asterisk-Dev] Function format

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue May 17 15:20:15 MST 2005


On Tuesday 17 May 2005 15:50, Jerris, Michael MI wrote:
> Leif Madsen wrote:
> > exten => 100,n,Goto(${IF(${EXISTS(${DB(foo/bar)})})}?:novalue)
> >
> > Nope, you won't get any argument from me that the syntax is
> > ugly and error prone - however the use of functions is very
> > powerful and a great addition - but I hate the syntax :)
>
> OK time to rally on an easily parable replacement for the functions
> format.  I know this one was the decision based upon parsability, but
> the usability is BAD.  Can somone suggest an alternate format that
> would not be a hit on parsing but is easier on usability.

As soon as you nest that deep (3 or more levels), it's going to look
ugly, no matter what the syntax.  It's not that big a deal; move on.

-- 
Tilghman



More information about the asterisk-dev mailing list