• Final SRFI 166: Monadic Formatting

    From Arthur A. Gleckler@21:1/5 to All on Thu Jul 30 22:46:21 2020
    Scheme Request for Implementation 166,
    "Monadic Formatting,"
    by Alex Shinn,
    has gone into FINAL status.

    The document and an archive of the discussion are available at <https://srfi.schemers.org/srfi-166/>.

    Here's the abstract:

    A library of procedures for formatting Scheme objects to text in
    various ways, and for easily concatenating, composing and extending
    these formatters efficiently without resorting to capturing and
    manipulating intermediate strings.

    This SRFI is an updated version of SRFI 159, primarily with the
    difference that state variables are hygienic.

    Summary of differences from SRFI 159:

    - State variables are first class and hygienic
    - Added written-shared, pretty-shared
    - Added as-italic, as-color, as-true-color, on-color background
    variants, and pretty-with-color
    - Added ambiguous-is-wide? state variable and
    string-terminal-width/wide utility
    - Added substring/width state var for width-aware substring
    operations, with substring-terminal-width(/wide) utilities
    - Added substring/preserve state var used in trimming, with
    substring-terminal-preserve utility
    - Added pretty-environment state variable
    - Renamed as-unicode to terminal-aware
    - Restored non-uniform comma rules as needed in India
    - Restored upcased and downcased
    - Several clarifications and more examples

    Here is the commit summary since the most recent draft:

    - Fix spelling.
    - copy edits
    - Finalize.

    Here are the diffs since the most recent draft:

    https://github.com/scheme-requests-for-implementation/srfi-166/compare/draft-5..final

    Many thanks to Alex and to everyone who contributed to the discussion of
    this SRFI.

    Regards,


    SRFI Editor

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)