----- Original Message -----
On Tue, Jan 28, 2014 at 9:11 PM, Erik Erlandson
wrote: I've had an idea for a tutorial in the back of my mind, where I would write a rudimentary unix-diff style program.
That reminds me of a question. One angle I thought would be fun is if I could use a range (or iterator) that iterates directly over lines in a text file (analogous to how you can say "for line in File" in python). Mostly just to show that you can use any exotic kind of range you want to. I don't know if such an iterator exists, or if it is forward and not just single-pass. It seems like something somebody would have already written, but my googling hasn't turned one up.
I especially appreciate a diff tool that not only indicates different lines, but within each change block, indicates which characters have changed. Admittedly that often just highlights the whole block -- but for small edits it can be *really* helpful.
meld is nice for this, and viewing diffs in general: http://meld.sourceforge.net/ you can hook meld into git: http://blog.deadlypenguin.com/blog/2011/05/03/using-meld-with-git-diff/