On Fri, Mar 16, 2018 at 8:58 AM, Stephen Colebourne <scolebou...@joda.org> wrote: > On 14 March 2018 at 23:05, Michael Hixson <michael.hix...@gmail.com> wrote: >> For example, does ``.lines() produce an empty stream? > > I believe `` is a compile error. > (A mistake IMO, but necessary if you have unlimited delimiters)
Ah, oops. I meant to ask about calling lines() on the empty string. "".lines() Looking at the implementation from a week ago [1], I think it disagrees with BufferedReader about what lines are - specifically when it comes to the empty string and any string ending with a line separator. That seems not good. But that behavior isn't specified in Jim's description or examples so I'm wondering if that's intentional. (Or I could be reading the code wrong). [1] http://hg.openjdk.java.net/amber/amber/file/5a2e574f43fb/src/java.base/share/classes/java/lang/StringLatin1.java#l560 -Michael > > Stephen