The fact that we're half a decade or better into investigating this capability and these sort of questions are still up in the air is mind-boggling. The fact that it's a real consideration of whether modules might be standardized without the experience of applying it the standard library is SUPER sketchy. I know I'll be sitting down with my organization's standardization representative this week.
I'm glad to see this issue with modules is getting attention. I've been talking to the people working on modules for a long time and explaining why buildsystem maintainers need to be part of the design discussion https://twitter.com/steveire/status/1072904573675814914
And that doesn't count third-party options like boost::lexical_cast or a full parser library. And I still feel we're missing one: a type-safe sscanf replacement a la fmtlib.
<charconv> is nice! Are there any plans to support strings with elements other than char? It would be nice to have overloads for std::from_chars and std::to_chars for wchar_t strings, especially on Windows. I mean, I suppose you could just convert the results over, but I figure that would somewhat defeat the purpose of it.
I haven't heard anyone talking about that. Implementing charconv from scratch is an enormous amount of work, so that's out for users. Wrapping the char functions is slower than desirable because you would need a temporary char buffer, and "smash non-ASCII characters" conversions, and if you want to get the pointer return values right, that's even more work.
I'm actually really surprised charconv made it through the committee without anyone mentioning that! Especially given the new character types introduced in recent standards.
Microsoft and Google have such experience on their compilers and they are the ones driving the modules design.
All the modules FUD that I have read so far, seem to be basically people wanting to keep doing everything they do with header files, while at the same time getting modules and not changing anything on the build infrastructure.
138
u/Auriculaire Jan 28 '19
The fact that we're half a decade or better into investigating this capability and these sort of questions are still up in the air is mind-boggling. The fact that it's a real consideration of whether modules might be standardized without the experience of applying it the standard library is SUPER sketchy. I know I'll be sitting down with my organization's standardization representative this week.