Filter (was Re: Using DropBox for Faster Mobile Development)

Bob Sneidar bobs at twft.com
Thu Feb 23 17:43:38 EST 2012


I could have accepted the behavior if it was the last line that passed the filter results, and because it did not contain a cr, the result did not end in a cr. But for the filtered results to not have the cr in ANY results regardless of whether or not the last line was included in the results would mean that the filter command is programmed to look to see if there is a trailing cr and then include on in ANY filter results or exclude one in ANY filter results based upon that! What sane reason is there for that??? It may as well check to see if the last char is a tab and so return a tab delimited list! 

Bob


On Feb 23, 2012, at 1:08 PM, Ben Rubinstein wrote:

> Bob,
> 
> I think this may indeed be a matter of perception, and therefore not one with a right or wrong answer!
> 
> But I think there absolutely _is_ a difference between terminate and delimit. And I've found from experience that some LC developers think of line formatted lists as a series of lines delimited by return (and I see in their code care being taken to avoid a final return, which would be redundant in that model when there's nothing to delimit); while others think of line formatted lists as a series of lines each terminated by return (and therefore their code takes equal pains to ensure that there's always a return at the end).
> 
> One might say that the nice thing is that FILTER allows both kinds of developers to remain secure in their respective deluded belief system...
> 
>> I see it differently. The same command with essentially the same
>> data (except for the one trailing cr) returns different results.
> 
> Strictly speaking, isn't that "the same command with different data returns different results"?
> 
> Or if you prefer, "the same command with essentially the same data (except for the one trailing cr) returns essentially the same results (except for the one trailing cr)"?
> 
> Ben
> 
> On 21/02/2012 17:57, Bob Sneidar wrote:
>> I see it differently. The same command with essentially the same data (except for the one trailing cr) returns different results. The FILTER command works with lines. It doesn't know from squat whether or not the developer meant to "terminate" or "delimit" and simply forgot to "terminate" the last line. In fact I am not even sure I understand the distinction. In this context "terminate" and "delimit" mean the same thing. There is no termination in LC that I know of.
>> 
>> Bob
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list