Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
sprintf implementation / golang fmt. #566
I've attached code for an sprintf implementation that is (loosely) based on the golang fmt package. I've been told there may be some interest to include it to std.
[I created a post request a couple of hours ago but was not aware of all the linter CI going on, sorry about that.]
It's still in and early form, but fairly full featured.
A number of semantic issues are still unclear to me, mostly concerning what the default representation of arbitray objects should be, what flags/variants would be useful, etc. I've outlined a number of those issues in the README and would be interested in receiving input into those points as well.
Aug 15, 2019
I like the idea and have thought about it previously, I'm not sure what the implementation would look like. Currenlty, positional params are indicated with:
Alternatively, the based value selection could imply only passing a single parameter. This has different sematics of a
OR there could be a different formatting function for this entirely.
I'd be super happy to hear your thoughts on what the interface / format string syntax for this could look like, because I can't really think of anything reasonable myself.
What I would like to avoid is straying from existing semantics of