groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Laforge <glafo...@gmail.com>
Subject Re: About adding DGM startsWith(String...) and endsWith(String...)
Date Sun, 31 Dec 2017 14:49:16 GMT
Sounds useful!
I would have used it a few times already.

On Sun, Dec 31, 2017 at 3:35 PM, mg <mgbiz@arscreat.com> wrote:

> All for adding that: Very helpful, does not break any existing code,
> should be faster than any regex based solution (and be honest: Who wouldn't
> wrap the regex solution in a helper method if used more than 2x in the
> code, using a substring based solution along the way... ?-) ).
>
> -------- Urspr√ľngliche Nachricht --------
> Von: "Daniel.Sun" <sunlan@apache.org>
> Datum: 31.12.17 13:59 (GMT+01:00)
> An: dev@groovy.incubator.apache.org
> Betreff: Re: About adding DGM startsWith(String...) and
> endsWith(String...)
>
> Yeah, you are right, but `it.file.name =~ /^(?:asm|antlr|antlr4)-/` is not
> very intuitive IMHO.
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>



-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Mime
View raw message