[asterisk-dev] Case-sensitivity of Dialplan variables.

Andrew Latham lathama at gmail.com
Tue Oct 2 09:59:36 CDT 2012


On Tue, Oct 2, 2012 at 10:52 AM, Walter Doekes
<walter+asterisk-dev at osso.nl> wrote:
>>> ("HASH" would be evaluated properly but "hash") would not. My personal
>>> opinion is that all variable evaluations should be case-sensitive. I
>>> don't feel all that strongly about it though and could easily be
>>> swayed the other way if people respond overwhelmingly in opposition.
>>
>>
>> +1 for case insensitivity for all namespaces.
>
>
> My opinion: case sensitive.
>
> Don't delegate stuff to runtime (strcasecmp) that a good editor and/or good
> eyes should cover.
>
> There are always going to be case sensitive bits left (dialplan options, for
> starters). Better do everything in the proper case the first time.
>
>
> I'd consider writing a basic on-dialplan-load check to warn people of case
> mistakes if that sways the opinion towards case-sensitive.
>
> Regards,
> Walter

I think Walter touches upon a good point.  There are case sensitive
options for apps, functions and the like.

I would vote "case sensitive".


-- 
~ Andrew "lathama" Latham lathama at gmail.com http://lathama.net ~



More information about the asterisk-dev mailing list