Re: Reader flags to indicate different kinds of files
Per Bothner 27 May 2020 14:42 UTC
On 5/27/20 2:13 AM, Lassi Kortela wrote:
>> file contents should ideally be self-describing. `#!r6rs` and `#! /usr/bin/env fantastic-scheme` are two such useful identifiers. Perhaps the `meta.scm` file can start with `#!metadata` or something. Would that be considered reader abuse?
> Come to think of it, since Scheme has a separate metalevel for `define-library`, how come there isn't a general `#!meta` read flag? That would obviate the need for the separate `.sld` filename extension as well.
>
> Maybe it's because the separate metalevel is not a required part of R7RS, but just one implementation strategy?
Kawa doesn't distinguish between .scm and .sld and doesn't need to.
--
--Per Bothner
xxxxxx@bothner.com http://per.bothner.com/