Re:Simple Dynamic Strings library for C, compatible with nul...
by chrchang523 on Wednesday December 04, 2019 @11:37AM
(#21703697)
Good point about implicit conversions; I may actually be able to use that to clean up some code in the near future.
However: If we open the discussion up to C++, then this is pretty easy to solve without any real syntactic or performance compromise: we can make a class/struct which defines implicit conversions to C strings, and disables any implicit conversions from C strings.