On Wed, Jun 3, 2009 at 9:34 PM, Artyom Shalkhakov <
[email protected]> wrote:

> Hi,
>
> 2009/6/3 Gwern Branwen <[email protected]>:
> > There isn't any schema I know of. You really just have to parse it
> > kind of ad-hoc. Like in my Filestore code abstracting over darcs
> > (maybe you could use it), I just looked at the XML generating code in
> > darcs to see that the output is pretty much fixed - when you've seen
> > the nodes for one change from --xml-output, you've seen'em all.
>
> I've skimmed through Filestore, and it seems like a good solution for now.
>
> What I am confused about though is the absence of schema... How come
> proponents of static typing provide untyped data?


I fully agree with you.  I think the code to generate the xml output should
probably be generated from a schema and then used inside darcs.  This
could/should allow us and others to leverage the host languages's type
checking to make sure schema usage is more or less correct.

Is this something you'd be interesting in helping with?  I doubt anyone
would turn away patches to add a schema and an effort to make darcs enforce
it.

Thanks,
Jason
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to