Review of first draft John Cowan (20 Apr 2020 14:11 UTC)
Re: Review of first draft Lassi Kortela (20 Apr 2020 15:02 UTC)
Re: Review of first draft Marc Nieper-Wißkirchen (20 Apr 2020 15:19 UTC)
Re: Review of first draft Lassi Kortela (20 Apr 2020 15:35 UTC)
Re: Review of first draft Marc Nieper-Wißkirchen (20 Apr 2020 15:45 UTC)
Loading code from standard input Lassi Kortela (20 Apr 2020 16:01 UTC)
Re: Loading code from standard input Marc Nieper-Wißkirchen (20 Apr 2020 16:30 UTC)
Re: Loading code from standard input Lassi Kortela (20 Apr 2020 16:49 UTC)
Re: Loading code from standard input John Cowan (20 Apr 2020 17:36 UTC)
Re: Loading code from standard input Lassi Kortela (26 May 2020 12:38 UTC)
Re: Loading code from standard input John Cowan (26 May 2020 17:36 UTC)
Re: Loading code from standard input Lassi Kortela (26 May 2020 17:45 UTC)
Re: Loading code from standard input John Cowan (26 May 2020 17:52 UTC)
Re: Loading code from standard input Lassi Kortela (26 May 2020 18:06 UTC)
Re: Loading code from standard input Marc Nieper-Wißkirchen (26 May 2020 18:12 UTC)
Re: Loading code from standard input Lassi Kortela (26 May 2020 18:50 UTC)
Re: Loading code from standard input Vladimir Nikishkin (27 May 2020 07:48 UTC)
Re: Loading code from standard input Lassi Kortela (27 May 2020 08:07 UTC)
Re: Review of first draft John Cowan (20 Apr 2020 16:02 UTC)

Re: Loading code from standard input Marc Nieper-Wißkirchen 20 Apr 2020 16:29 UTC

Am Mo., 20. Apr. 2020 um 18:01 Uhr schrieb Lassi Kortela <xxxxxx@lassi.io>:
>
> >     * `fantastic-scheme <foo.scm` from the shell
> >
> > This could run "foo.scm" as a program (in the sense of R7RS).
>
> That would require checking whether standard input is a terminal, and
> only running the REPL in that case. If standard input is a file, the
> implementation would use program semantics instead. I wonder whether
> this is brittle.

It is brittle in any case because the "script" being loaded may call
`read' in between.  Anyway, I just wanted to say that the author of
`fantastic-scheme' may have decided that `fantastic-scheme' called
without a filename may read an R7RS top-level program from the
standard input port because the command to start a REPL is
`fantastic-repl'. :)