Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
On 10/8/14, 4:03 AM, Andreas Schwab wrote:
> Chet Ramey <chet.ramey@case.edu> writes:
>
>> Yes, that's right. The question is whether that case of the index out
>> of bounds should continue to return NULL, but in a clearer way, or
>> return "" to differentiate it from the case where shell_input_line is
>> NULL.
>
> Do you need that difference? The only caller treats them the same.
Sure, now. There may be others in the future; you like to design general
interfaces.
Why are we spending this much bandwidth discussing a line of code that
makes no practical difference?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/