> By “empty”, you mean that it contains at least this:
> <?xml version="1.0"?>
> I would find even more convenient to not create a file.
Yes, I mean that at least it is a valid XML file.
Thanks for your suggestion, I think we can assume that if the file
doesn't exist then it has the same meaning of an empty valid XML file.
> OK. Could it create a default virtual host automatically when
> ‘virtualhosts.xml’ isn’t provided?
Yes, it could, but how to choose the port number for example? A random
> I’d recommend using disjoint types as much as possible, instead of lists
> everywhere. For instance, I’d write the example along the lines of:
> (define vhosts
> (list (make-virtual-host "example" 'web #:port 8080)))
> where ‘make-virtual-host’ is a procedure that returns a ‘virtual-host’
> object, with a distinct type. That makes it less error-prone and allows
> for better error reporting than when using lists and strings for
> everything (anyone who’s used Gnus will understand what this means ;-)).
> Disjoint types can be created with SRFI-9, for instance (info "(guile)
Thanks for the suggestion! :-)
> Another thing that could be interesting is to provide a ‘server-impl’
> for Guile’s new web framework (info "(guile) Web Server").
> Sorry, I didn’t mean to bother you with these Guile things. ;-)
Guile and Scheme are always welcome here :-) Maybe "guile-ify MyServer
(and the way back)" can be a good GSOC task.