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

Re: [Scheme-reports] Checking implementation features and Scheme name?



On Mon, Jan 2, 2012 at 6:52 PM, Jeronimo Pellegrini <j_p@x> wrote:
>
> Reading the latest draft I realized that there is no
> standard way to obtain a list of all features (those
> used by cond-expand) declared/supported by an
> implementation. Chibi, Guile and Tinyscheme do keep
> a list in the *features* variable, but it doesn't seem
> to be standard. It would make sense in some situations
> to check/log/report features, maybe not knowing a
> complete list of possible features beforehand.
>
> Also, I think that there is no R7RS-standard way to
> obtain the name of the Scheme implementation if
> I don't already know a list of all implementations
> (suppose I have written  benchmark or test of some
> kind; it wouldn't be able to write a log with the
> implementation's name).
>
> I suppose these issues do not bother most people --
> am I wrong?

I think checking the feature list is useful interactively,
but can't think of a good use in programs apart from
logging.  Checking the implementation name would
only be useful for logging, or possibly in the case
where you're provided a REPL in some application
(e.g. an ircbot) and want to know what implementation
it's running on.

Given these are minor cases I think it's a more
appropriate feature for the large language.

-- 
Alex

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports