> David A. Wheeler scripsit:
> > How about cond-expands at the beginning to handle much of the shimming,

On Mon, 25 Nov 2013 12:08:47 -0500, John Cowan <co...@mercury.ccil.org> wrote:
> As of the last time I looked, cond-expand wasn't supported by Racket,
> Scheme48/scsh, Larceny, Ypsilon, S7, or Sizzle.

It just gets worser and worser.

Putting the text in *different* files and leaving them there *also*
appears to be non-portable:
* R5RS "load" doesn't guarantee that loading is relative to the directory
  of the current file (or provide any other guarantee about current directory),
  and has no "include" at all.
* R7RS does have "include" (4.1.7. Inclusion), though it merely
  "encourages" searching the same directory as the caller of include
  (and certainly doesn't guarantee searching there FIRST, so it's just
  begging for security vulnerabilities just like PATH=".:$PATH").

Maybe it's time to break out cpp or sed :-(, or use some other
tool to generate various files for different Scheme implementations.
The "configure" program already modifies the file anyway,
so that might not be insane.
At the least, I could put things in different files, and then use "cat"
to create files usable to different systems.

I'll note that my Common Lisp implementation "just works",
and it even overrides the reader.  In contrast, a common answer
seems to be "don't bother trying to write portable Scheme":
http://stackoverflow.com/questions/11062320/writing-portable-scheme-code-is-anything-standard-beyond-r5rs-itself
I *like* Scheme, but it's starting to feel like an abusive relationship :-).

--- David A. Wheeler

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to