I have a sort of odd use case for ferret where I'm using it to interop with some C++ code in order to generate FFI bindings. A part of this requires generating source code in a different language and having the ability to apply templates would be helpful. Having format or even str would be useful for this case.
I went ahead and hacked up a replacement for str that relies on the std::string class, but would be nice to have str and format in core. Happy to send a PR with my str, though not sure it handles all cases and, as I said, it requires std::string.
Thanks for ferret, it's kind of weird but I like it as a hacky way to get at C++. :)
I have a sort of odd use case for ferret where I'm using it to interop with some C++ code in order to generate FFI bindings. A part of this requires generating source code in a different language and having the ability to apply templates would be helpful. Having
formator evenstrwould be useful for this case.I went ahead and hacked up a replacement for
strthat relies on thestd::stringclass, but would be nice to havestrandformatin core. Happy to send a PR with mystr, though not sure it handles all cases and, as I said, it requiresstd::string.Thanks for ferret, it's kind of weird but I like it as a hacky way to get at C++. :)