[Top][All Lists]

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

Re: Making markup functions parametric

From: Urs Liska
Subject: Re: Making markup functions parametric
Date: Fri, 03 Jul 2020 22:07:34 +0200
User-agent: Evolution 3.36.3-1

Am Freitag, den 03.07.2020, 21:58 +0200 schrieb Ralf Mattes:
> Am Freitag, 03. Juli 2020 21:52 CEST, Urs Liska <
>> schrieb: 
> > Unfortunately I don't really have an idea what "#:circle" actually
> > *is*, so I have no clue about getting where I need to.
> Syntacilally? That would be a scheme keyword. 

So that would be difficult to inject from a variable/argument, isn't

I can of course do

   ((eq? enclosure 'circle)
    (markup #:circle "CC"))
   ((eq? enclosure 'box)
    (markup #:box "CC)))

But I'd rather do something like

  (markup (assq-ref enclosures enclosure) "CC")

i.e. looking up the appropriate function instead of creating a
conditional chain.

Any ideas?


>  Cheers, RalfD
> > BestUrs
> > 
> > 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]