Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: BGB Newsgroups: comp.lang.java.programmer Subject: Re: multi-line Strings Date: Fri, 21 Dec 2012 12:51:38 -0600 Organization: albasani.net Lines: 36 Message-ID: References: <7f36342c-2331-4484-874b-4a0f8953f160@googlegroups.com> <50c61150$0$293$14726298@news.sunsite.dk> <50c6413a$0$293$14726298@news.sunsite.dk> <50c6598d$0$290$14726298@news.sunsite.dk> <50c69625$0$293$14726298@news.sunsite.dk> <50cbeec3$0$291$14726298@news.sunsite.dk> <50d1216e$0$287$14726298@news.sunsite.dk> <50d2336c$0$285$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net nYPOuAsnUZjrRsiKnkGQDYshkFweayWRFlo9Pup1YZ8915tYXRKzePsGumANgEuDuT0QhzxPnx1H3exaPAC7/27HdybMS1YDvKR3U3dnHszedK5NX9XAjyYQ/Gk9+7Jk NNTP-Posting-Date: Fri, 21 Dec 2012 18:54:32 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="HL4SZKIBomIYn55pbNNF3yuP87CmmKZXltL/fG07JFY7LoL37F9iOsfYxiPlNrJirStjebm07RJtBPyFf3EJ6EFVJ0zZsPWqwhNWoy1CTZIq38MGq6Y6TjK8mL9ccjHp"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50d2336c$0$285$14726298@news.sunsite.dk> Cancel-Lock: sha1:5SREfcy+fH5SlswvLXNyjWVnCjA= Xref: csiph.com comp.lang.java.programmer:20666 On 12/19/2012 3:36 PM, Arne Vajhøj wrote: > On 12/19/2012 9:26 AM, BGB wrote: >> On 12/18/2012 8:07 PM, Arne Vajhøj wrote: >>> On 12/15/2012 6:54 AM, Chris Uppal wrote: >>>> Off-the-top-of-my-head (all classes and method are imaginary): >>>> >>>> Regexp alpha = Regexp.fromList(java.lang.text.portable.Alphas); >>>> alpha = alpha.or('_'); >>>> Regexp num = Regexp.fromList(java.lang.text.portable.Digits); >>>> Regexp alphanum = alpha.or(num); >>>> Regexp identifier = alpha.followedBy(alphanum.repeated()); >>> >>> I think that is what is widely known in the .NET world >>> as a fluent API. >>> >> >> better term maybe than "big pile o' nasty...". >> >> yes, regex syntax could be nicer, but probably not by making it into a >> big pile of API calls. > > It is very popular in some .NET circles. > > Surprisingly the Wikipedia article > http://en.wikipedia.org/wiki/Fluent_interface > does not even cover .NET. > fair enough... I have sometimes gone the other way though, finding a dedicated textual representation to be more compact and easier to work with than an API, but either way. I guess it depends though...