[Top][All Lists]

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

[Bug-mit-scheme] Compiler doesn't like SLIB let-values (SRFI 11)

From: Matt Birkholz
Subject: [Bug-mit-scheme] Compiler doesn't like SLIB let-values (SRFI 11)
Date: Fri, 27 Apr 2012 19:19:38 -0700

> From: Matt Birkholz <address@hidden>
> Date: Thu, 26 Apr 2012 09:27:56 -0700
> [...]
> > If I load the .scm file it runs fine.
> To make scripts easier to write, a .scm file is "loaded" by evaluating
> each top-level expression immediately.

I should say source-loader iterates, calling read and repl-eval.  WHY
it does that I can only surmise.

> In short: don't compile your scripts.  Loading a compiled script
> rarely does what you want.

Too pithy?  It maybe makes more sense turned end-for-end:

    Don't compile files... unless they are all one syntax... no,
    that's not it.

    Don't compile files unless you are prepared for the differences
    imposed by separate compilation... for it makes them soggy and
    hard to re-light... mumble.

I wish load and compile were one and the same, that separate
compilation was only used to build the boot-dirs, and that all other
.bin and .com files would disappear back into the bands from which
they came, permanently affixed to an environment.  As during
syntax-time, so should it be at run-time.  Amen.

reply via email to

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