It would be easy to use case insensitive matching instead of the strcmp() that we use at present, but I think we should check the string against all possibilities using a case sensitive comparison before using the more fuzzy matching, and doing that would make the code a little longer. The underline/space thing would make the comparison a bit more fuzzy than I'm really comfortable with myself. I will see what I can do to improve the error message, but IIRC the message is a bit removed from where the error is detected.
Thanks for all your comments,
- Andrew
--
Sent from my iPad
On Oct 9, 2013, at 4:09 PM, "Eric Norum" <[email protected]> wrote:
> On Oct 9, 2013, at 3:58 PM, Benjamin Franksen <[email protected]> wrote:
>
>>
>>
>> Therefore I see a case for some very limited sort of dwimming, namely:
>>
>> (1) Case-insensitive matching.
>>
>> (2) Identifying underline '_' and space ' '.
> I'm more in favour of completely strict matching as is now the case (but with really descriptive diagnostic messages on failure). My opinion is that 'dwimming' results in making things less understandable because it gets too hard to remember the rules and thus databases and such get harder to comprehend.
>
> --
> Eric Norum
> [email protected]
>
>
>
>
>
- Replies:
- Re: Enumerated string comparisons Dudley, David
- References:
- Re: Enumerated string comparisons Benjamin Franksen
- Re: Enumerated string comparisons Michael Davidsaver
- Re: Enumerated string comparisons Benjamin Franksen
- Re: Enumerated string comparisons Eric Norum
- Navigate by Date:
- Prev:
Re: Enumerated string comparisons Eric Norum
- Next:
Re: Enumerated string comparisons Dudley, David
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Enumerated string comparisons Eric Norum
- Next:
Re: Enumerated string comparisons Dudley, David
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|