[erlang-questions] eep-0012 (Extensions to comprehensions)

Kevin Scaldeferri kevin@REDACTED
Thu Aug 7 07:27:41 CEST 2008

On Aug 6, 2008, at 10:19 PM, Richard A. O'Keefe wrote:

> On 7 Aug 2008, at 2:14 pm, Kevin Scaldeferri wrote:
>> There's also the desire to have diffs only display important  
>> changes, not insignificant things like the addition or removal of a  
>> line terminator/separator.  Is this worth changing the language  
>> for?  Eh, probably not.  But if you were designing from scratch,  
>> it's one of those nice little things.
> Suppose you have
> 	   X
> 	]
> and you change this to
> 	   X,
> 	   Y
> 	]
> The *number* of diffs does not change, there is only an extra line  
> in the diff.

The point is that you could have changed:


and then only one line changed.

> I actually find it useful that this extra line appears, because it  
> gives me a
> wee bit of context: Y didn't just appear somewhere, it appeared  
> after X.

If you want a context diff, ask for a context diff.

As I said, this is a pretty minor issue, but it's a minor issue many  
people will mention.


More information about the erlang-questions mailing list