baseName(path).startsWith(something)
Martin Nowak
code at dawg.eu
Thu Jan 9 13:01:04 PST 2014
On Thursday, 9 January 2014 at 19:06:19 UTC, monarch_dodra wrote:
>
> ...is that a question?
>
I just watend to share the discovery.
I always wondered what bothers me about some UFCS overuse and
it's the sentence part that matters.
> I find the first is most readable. Well, (IMO) with added
> parens too:
>
> if (path.baseName().startsWith(something))
> doThis();
>
But how do speak that out in your head?
The other one is, if the basename of path starts with something
do this.
More information about the Digitalmars-d
mailing list