Writing XML

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 6 10:07:00 PST 2011


On 2/6/11 9:43 AM, Tomek Sowiński wrote:
> While I'm circling the problem of parsing, I took a quick look at writing not to get stuck in analysis-paralysis.

That's great. I won't be able to add much because I haven't worked with 
XML so I don't know what people need. The example looks nice and clean.

Generally laziness may be a tactics you could use to help with memory 
use. A good example is split() vs. splitter(). The "er" version offers 
one element at a time thus never forcing an allocation. The split() 
version must do all work upfront and also allocate a structure for 
depositing the output.



Andrei


More information about the Digitalmars-d mailing list