Removing the environment library
Peter McGoron 27 Oct 2026 11:31 UTC
Hello SRFI 276 list,
I am working on the sample implementation of the rounding mode and
exception aspects of this SRFI, which wrap MIT-Scheme's floating point
implementation.
However, the exception library in the current draft of the SRFI doesn't
map to C's fenv_t, which only supports saving, restoring, and updating
the floating point environment. (The MIT-Scheme API is a thin wrapper
around the C API.) There is not a way to inspect a saved floating point
environment, and there is not reliable way to decide if two environments
are equal. The concept of a first-class floating point environment is a
C thing, and IEEE 754 doesn't mention such a thing.
I will probably remove the API in the next draft.
-- Peter McGoron