chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] need idea for read-syntax


From: Category 5
Subject: Re: [Chicken-users] need idea for read-syntax
Date: Thu, 20 Nov 2003 10:59:32 +0000
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (berkeley-unix)

Felix Winkelmann <address@hidden> writes:

>> Okay.  I think the thing that puzzles me a bit is that I see variable
>> references as different beasts than (sequences of) instructions.  The
>> first means 'this thing' and the second means 'do this'.  It seems a
>> little confusing to use the same form for both purposes.
>
> Admittedly, that's true. How about two different forms:
>
> (foreign-code " ... ")
> (foreign-expression " ... " TYPE)
>
> ?

I think this is much clearer, yes.  It also clears up the read syntax
issue; foreign-code is similar to foreign-declare and could benefit from
a special read syntax for the same reason, but you don't need read
syntax for foreign-expression since you can just use let (if I correctly
understand foreign-expression to return a first-class thing).

-- 





reply via email to

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