Good evening,

I'm sorry for the inconvenience if this are very simple doubts I'm not able to 
resolve by myself but:

1. Why the "let wrapper" with-shell-quotation-bindings (in gnu home services) 
uses string-fold-right instead of string-fold ?


For example the interpose procedure in (gnu services configuration) uses 
fold-right because that way it can perform the last insert of the delimiter 
when grammar is 'suffix. But in the case of with-shell-quotation-bindings I 
don't understand why. Maybe because folding right is faster than folding left? 
For me fold left looks faster to implement if I think in an abstract sense.


2. 

In (gnu home services shells) why is serialize-boolean defined as:

(define (serialize-boolean field-name val) "")

Shouldn't be defined as:

(define serialize-boolean empty-serializer)


It's indeed the same but it gives some confusion, because we see 
serialize-package defined as an alias of the empty-serializer and at first 
glance it looks like we are applying different serializing methods. It's 
defined in that way because of something in particular?


Thank you very much!
-- 
Marius

Reply via email to