• Print/format DSL library

    From Stefan Monnier@21:1/5 to All on Mon Feb 12 10:48:19 2024
    Hi,

    I remember bumping into a library several years ago (must have been
    Common Lisp or Schemem, IIRC) which provided a sexp-based DSL for the
    job usually performed by the "format string" in things like C's `printf`
    or Lisp's `format`. But I can't remember anything like the name of the
    library or the name(s?) of its author(s?).

    It also came with a nice introduction explaining the rationale for the
    design and how it is just so much better than those standard approaches.

    Does that ring a bell?


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Monnier@21:1/5 to All on Mon Feb 12 12:33:25 2024
    4 An Improved Formatted I/O Facility
    from http://www.cs.yale.edu/homes/dvm/papers/ytdoc.pdf perhaps ?
    Parent page is http://www.cs.yale.edu/homes/dvm/index.html .

    Thanks. That's not the one I remember (or my memory is really ppor),
    but it's going in a similar direction, indeed.
    And it's a nice read :-)


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Spiros Bousbouras on Mon Feb 12 22:17:05 2024
    On Mon, 12 Feb 2024 16:46:53 -0000 (UTC), Spiros Bousbouras wrote:

    4 An Improved Formatted I/O Facility
    from http://www.cs.yale.edu/homes/dvm/papers/ytdoc.pdf perhaps ?
    Parent page is http://www.cs.yale.edu/homes/dvm/index.html .

    Unfortunately, that suffers from the same drawback as C++ I/O streams, in
    that you cannot get a format string from localizable resources that can
    reorder items to match the grammatical requirements of different
    languages.

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