ffmt

Format string experimentations (by Octachron)

ffmt reviews and mentions

Posts with mentions or reviews of ffmt. We have used some of these posts to build our list of alternatives and similar projects.
  • How does OCaml implement `printf` type checking?
    1 project | /r/ocaml | 9 Sep 2022
    Beyond the syntactic sugar, format strings are an ordinary (if complex) data types. You can implement your own formatting engine using this type. However, the format type is internal (thus there is no stability guarantee), quite large, and a significant part of the complexity is due to rarely used features (format string substitution for instance). Thus, I believe that it is easier to define your own type and write a ppx to get an equivalent syntactic sugar. For instance, https://github.com/Octachron/ffmt contains few examples of format-like ppxes and formatting engines.
  • Resources on variable-arity functions in Hindley-Milner type systems?
    1 project | /r/ProgrammingLanguages | 19 Oct 2021
    By the way, the `printf` behaviour can be encoded using GADT. I think this is how it's implemented in OCaml and there's a nice experiment https://github.com/Octachron/ffmt of doing this in user-space. So maybe adding GADT is the first step to allow such functionality?

Stats

Basic ffmt repo stats
2
12
3.9
almost 3 years ago

Octachron/ffmt is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.

The primary programming language of ffmt is OCaml.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com