Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Inclusive or exclusive array Date: Fri, 2 Aug 2019 16:17:09 -0400 Organization: A noiseless patient Spider Lines: 20 Message-ID: References: <87zhkvmqx8.fsf@munus.decebal.nl> <87v9vjmkkn.fsf@munus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 2 Aug 2019 20:17:11 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="44e6e54a41a0b28b25b9d700d9dcf514"; logging-data="31781"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZaZJr+LSIt5kl9badnknm" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cancel-Lock: sha1:qbHW1mdiY9h4Enc16BbQbxNUU+Q= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:39066 On 8/1/2019 7:15 PM, Daniele Futtorovic wrote: > On 2019-08-01 20:20, Eric Sosman wrote: >>     - Exclusive end: >>     - Count: >>     - Inclusive end (I may be quibbling): > > Any preferences? Mild ones. In string-bashing, it seems a frequent task is to find the start of an interesting piece, scan forward for a delimiter of some kind, and snip out the interesting piece. String::substring(int, int) fits very naturally into this sort of scenario, IMHO, especially since the exclusive end of one piece is exactly the inclusive start of the piece that follows. -- esosman@comcast-dot-net.invalid Five hundred thirty-seven days to go.