This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Language translation proposal 1.4


Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:

> ** Foreign language escape syntax
> 
> Note that such data can flow freely between modules.  In order to
> accomodate data with different native syntaxes, each language module
> provides a foreign language escape syntax.  In Scheme, this syntax
> uses the sharp comma extension specified by SRFI-10.  The read
> constructor is simply the last symbol in the long language name (which
> is usually the same as the short language name).
> 
> ** Example1
> 

[...]

> enums	  #,(ctax ENUM)	   ENUM
 > 
> ** Example2
>
[...]

>  #,(ctax 1+2;)

This is not compatible with SRFI-10.

It should be:

  #,(ctax "ENUM")
  #,(ctax "1+2;")

Or, we could introduce some other sharp syntax

  #[ctax ENUM]
  #[ctax 1+2;]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]