On Thu, Nov 24, 2016 at 07:17:42PM +0100, Julien Lepiller wrote:
+(define (serialize-string field-name val) + (serialize-field field-name val)) I find it useful to allow such fields to take the value #f and meaning that they will be ignored by their respective serialize- procedures. For example: (define (serialize-string field-name val) (if val (serialize-field field-name val))) +(define (serialize-boolean field-name val) + (serialize-string field-name (if val "yes" "no"))) Some configs require "true" and "false" instead of "yes" and "no". So perhaps this can be generalised a little. J' -- Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature