4 ms·
Why not just implement a subset of SVG?
by CyberRabbi 5y ago
Why not just implement a subset of SVG?
- ur-whale 5y ago> Why not just implement a subset of SVG? XML
- CyberRabbi 5y agoJust curious how does XML prevent you from implementing a subset?
- ur-whale 5y agoXML is an integral part of SVG. Don't even know what implementing a subset without using XML would actually mean. An XML being a strong contender for the title of worst file format ever devised by mankind, I'm not sure how 'implementing a subset' would fix that.
- CyberRabbi 5y agoWell yes, it’s true you’d have to implement basic XML parsing to implement a subset of SVG. At the same time, despite how unpopular XML may be it’s among the easiest textual languages for which to write a parser. This isn’t hyperbole. It’s so trivial I didn’t even consider that that’s what you actually meant.
- templix 5y agoCareful now. SVG uses a lot of XML features that goes beyond "basic XML parsing". To define a subset of SVG doesn't imply that simplifying the XML part is going to be easy.
- CyberRabbi 5y ago> Careful now. SVG uses a lot of XML features that goes beyond "basic XML parsing". Could you name the feature to which you are referring specifically? > XML part is going to be easy. What part of parsing XML is hard? My premise is that all XML parsing is easy.