i***@gmail.com
2018-11-30 19:45:44 UTC
Some people do not like fact that `module` will be keyword (because it will
clash with existing names).
One solution is p0924r0 where it will make context sensitive.
But we could choose different name too (that are less likely to clash). Eg.
begin_module X;
start_module Y; //or
export_module Z; //or
module_unit W; //or
It will be bit more to type but this will be done only couple of times per
file (and in many cases done by IDE).
Why this approach was not taken?
Another way could be add `using`:
using module X;
export using module Y; //and
But this could be read as `import` similar to how we using `using namespace
Z;`
clash with existing names).
One solution is p0924r0 where it will make context sensitive.
But we could choose different name too (that are less likely to clash). Eg.
begin_module X;
start_module Y; //or
export_module Z; //or
module_unit W; //or
It will be bit more to type but this will be done only couple of times per
file (and in many cases done by IDE).
Why this approach was not taken?
Another way could be add `using`:
using module X;
export using module Y; //and
But this could be read as `import` similar to how we using `using namespace
Z;`
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/d9cdd3db-8372-47b1-a8b4-f98bf6136b63%40isocpp.org.
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/d9cdd3db-8372-47b1-a8b4-f98bf6136b63%40isocpp.org.