[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using XML to handle all configuration files



On Mon, Jan 22, 2001 at 11:45:20AM +1100, Brian May wrote:
> For instance compare
> ... [XML example]
> with
> 
> (interfaces
> (comment "This is a comment")
> (auto lo)
> (auto inet)
> (auto loopback)
> 
> (iface lo inet loopback)
> 
> (iface eth0 inet static
> 	(address 10.1.2.2)
> 	(network 10.1.0.0)
> 	(netmask 255.255.0.0)
> 	(broadcast 10.1.255.255)
> 	(gateway 10.1.2.254)))
> )
> 
> and tell me in 10 seconds or less if the S expression is valid or
> what errors exist if it is not...

For that matter, compare it with the original style 

interfaces
# This is a comment
auto lo
auto inet
auto loopback
iface lo inet loopback
iface eth0 inet static
	address 10.1.2.2
 	network 10.1.0.0
 	netmask 255.255.0.0
 	broadcast 10.1.255.255
 	gateway 10.1.2.254


And consider that you dont have to do stupid things like match ((())))))
and you can simply use # as God intended.
I prefer the current style to either of the two proposed alternatives.



Reply to: