chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] is it possible to define expand-time values?


From: Peter Bex
Subject: Re: [Chicken-users] is it possible to define expand-time values?
Date: Sun, 5 May 2019 10:27:10 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Sat, May 04, 2019 at 09:06:08PM +0200, Marco Maggi wrote:
> That  example just  shows the  mechanism, and  it is  not really  a good
> example (I wrote it).  What I  am thinking of, as reference scenario, is
> an infix-to-prefix macro  with infrastructure that allows  to define new
> binary operators, in which the operator name is not necessarily equal to
> the name of the function that implements the operation itself.
> 
>   So it should go like this:
> 
>    (define (spiffy-operation X Y)
>      (do-something-spiffy-with X Y))
> 
>    (define-infix-binary-operator spiffy
>      (right-binding-power 55)
>      ...
>      (procedure spiffy-operation))
> 
>    (infix 2 * 3 + 88 spiffy 99)

I don't quite understand this example.  Nevertheless, I still get
the feeling that this is a concept that's unnecessary.

Cheers,
Peter

Attachment: signature.asc
Description: PGP signature


reply via email to

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