Optimizations and performance
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 10 07:29:24 PDT 2016
On Friday, 10 June 2016 at 09:31:42 UTC, Chris wrote:
> Something like
>
> `void main()
> {
> // Replace anything that looks like a real
> // number with the rounded equivalent.
> stdin
> .byLine
> .map!(l => l.replaceAll!(c => c.hit.round)
> (reFloatingPoint))
> .each!writeln;
> }
> `
That's a best practice that requires some learning and discipline
to use. A newbie won't write such code.
More information about the Digitalmars-d
mailing list