djinnprint - @nogc and -betterC compatible functions used to format data as text
tspike
mail at gamedevgp.net
Tue Jul 20 04:34:56 UTC 2021
I want to finally introduce a library I’ve been working on called
[djinnprint](https://github.com/tspike2k/djinnprint). It’s a
small set of functions used to format data as text. What sets it
apart from std.write is that it can be used in @nogc blocks and
even with the -betterC compiler switch. Like std.write, the
library can format struct data without asking the user to supply
some form of stringify method. Unlike std.write, the format
string determines the order in which each argument is is
formatted in the resulting output (potentially useful for
internationalization).
I started this project last year to evaluate the capabilities of
the language and see if I’d like to continue using it for
personal projects. It turns out that D hits all the right notes
with me and so I’ve been happily using the language ever since.
I’m pretty happy with where the library is right now, though
there’s still more work that needs to be done. I’ve been using
this library rather extensively in my personal projects and (so
far) it seems to work nicely, so I though now would be a good
time to share it.
Anyway, thanks for reading!
More information about the Digitalmars-d-announce
mailing list