Werner LEMBERG <[email protected]> writes: >> oo = #(define-music-function (parser location prop value) >> (symbol-list? scheme?) >> #{ \once \override #prop = #value #}) >> >> should likely work fine in 2.18. > > Thanks! Aaron provided this version > > oo = #(define-music-function (parser location prop value) > (list? scheme?) > #{ \once \override $prop = #value #}) > > and I wonder which one is better...
Well, I prefer not investing the overhead of $ when # is sufficient, and I prefer using predicates that are specific enough to lead to error messages at the place where the wrong input is rather than triggering followup errors. Given correct input, they should do the same. -- David Kastrup
