chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] functors


From: Felix
Subject: Re: [Chicken-hackers] functors
Date: Thu, 24 Mar 2011 20:35:19 +0100 (CET)

> Hello,

Hi!

> 
> just a small remark about the syntax: I find this use of keywords
> rather unintuitive. I would either expect to be able to write
> something like this:
> 
>   (module foo (bar baz #:interface ARITHMETIC boing) ...)
> 
> Or something like this:
> 
>   (module foo (bar baz (interface ARITHMETIC) boing) ...)
> 
> But a keyword in operator position is unusual and looks rather strange
> to me.

The problem is that the latter example is ambiguous - it is the same
as exporting a macro "interface" that implicitly exports the binding
"ARITHMETIC". The former example doesn't also looks confusing to me,
but that is more a matter of taste. The use of a keyword is indeed not
everybodies taste, but I couldn't come up with a better syntax that
is both unambiguous and obvious.


cheers,
felix



reply via email to

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