A few notes on choosing between Go and D for a quick project
Sebastiaan Koppe via Digitalmars-d
digitalmars-d at puremagic.com
Fri Mar 20 21:43:52 PDT 2015
On Saturday, 21 March 2015 at 01:31:21 UTC, Andrei Alexandrescu
wrote:
> On 3/20/15 5:56 PM, Walter Bright wrote:
>> On 3/20/2015 5:23 PM, Andrei Alexandrescu wrote:
>>> Yah, and uses reference counting for management. -- Andrei
>>
>> Ref counting won't improve splitLines, because it must keep
>> them all.
>
> Yah, all solution based on "let's keep all lines so we count
> them at the end" are suboptimal. -- Andrei
What about `.count("\n")` ?
More information about the Digitalmars-d
mailing list