Topic: Namespace collapsing
Author: Denis Kotov <redradist@gmail.com>
Date: Wed, 1 Mar 2017 02:23:32 -0800 (PST)
Raw View
------=_Part_1502_1443297813.1488363812924
Content-Type: multipart/alternative;
boundary="----=_Part_1503_260115385.1488363812924"
------=_Part_1503_260115385.1488363812924
Content-Type: text/plain; charset=UTF-8
Hi all,
I have faced with the following issue:
namespace com {
namespace Company {
namespace Department {
// Some code
} // com
} // Company
} // Department
We can use somthing like this:
namespace com { namespace Company { namespace Department {
// Some code
} } } // com.Company.Department
But it is again is not a perfect solution.
It will be better to have shortcut for such situation like:
namespace com.Company.Department {
// Some code
} // com.Company.Department
What do you think ?
--
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+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/33c324d6-fb16-4c55-84ba-9bd8936fcb04%40isocpp.org.
------=_Part_1503_260115385.1488363812924
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi all,<div><br></div><div>I have faced with the following=
issue:</div><div><br></div><div>=C2=A0 =C2=A0 namespace com {</div><div><b=
r></div><div>=C2=A0 =C2=A0 namespace Company {</div><div><br></div><div>=C2=
=A0 =C2=A0 namespace Department {</div><div><br></div><div>=C2=A0 =C2=A0 //=
Some code</div><div><br></div><div>=C2=A0 =C2=A0 } // com=C2=A0</div><div>=
<br></div><div>=C2=A0 =C2=A0 } // Company=C2=A0</div><div><br></div><div>=
=C2=A0 =C2=A0 } // Department=C2=A0</div><div><br></div><div>We can use som=
thing like this:</div><div><br></div><div><div>=C2=A0 =C2=A0 namespace com =
{ namespace Company { namespace Department {</div><div><br></div><div>=C2=
=A0 =C2=A0 // Some code</div><div><br></div><div>=C2=A0 =C2=A0 } } } // com=
..Company.Department</div></div><div><br></div><div>But it is again is not a=
perfect solution.</div><div><br></div><div>It will be better to have short=
cut for such situation like:</div><div><br></div><div><div>=C2=A0 =C2=A0 na=
mespace com.Company.Department {</div><div><br></div><div>=C2=A0 =C2=A0 // =
Some code</div><div><br></div><div>=C2=A0 =C2=A0 } // com.Company.Departmen=
t</div><div><br></div></div><div>What do you think ?</div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/33c324d6-fb16-4c55-84ba-9bd8936fcb04%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/33c324d6-fb16-4c55-84ba-9bd8936fcb04=
%40isocpp.org</a>.<br />
------=_Part_1503_260115385.1488363812924--
------=_Part_1502_1443297813.1488363812924--
.
Author: =?UTF-8?Q?Daniel_Kr=C3=BCgler?= <daniel.kruegler@gmail.com>
Date: Wed, 1 Mar 2017 11:28:44 +0100
Raw View
2017-03-01 11:23 GMT+01:00 Denis Kotov <redradist@gmail.com>:
> Hi all,
>
> I have faced with the following issue:
>
> namespace com {
>
> namespace Company {
>
> namespace Department {
>
> // Some code
>
> } // com
>
> } // Company
>
> } // Department
>
> We can use somthing like this:
>
> namespace com { namespace Company { namespace Department {
>
> // Some code
>
> } } } // com.Company.Department
>
> But it is again is not a perfect solution.
>
> It will be better to have shortcut for such situation like:
>
> namespace com.Company.Department {
>
> // Some code
>
> } // com.Company.Department
>
> What do you think ?
This is already supported, but the spelling is slightly different:
namespace com::Company::Department {
// Some code
}
- Daniel
--
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+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAGNvRgCpoKt6-j1M2Y0%2BKFoK%2BEoMG2Qh%3D8dgqxrBTbk4Q5Nj0A%40mail.gmail.com.
.
Author: Denis Kotov <redradist@gmail.com>
Date: Wed, 1 Mar 2017 03:16:39 -0800 (PST)
Raw View
------=_Part_1605_22185194.1488366999576
Content-Type: multipart/alternative;
boundary="----=_Part_1606_1753678482.1488366999576"
------=_Part_1606_1753678482.1488366999576
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Thanks for answer !
=D1=81=D1=80=D0=B5=D0=B4=D0=B0, 1 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2017 =D0=
=B3., 12:28:47 UTC+2 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=
=D0=B5=D0=BB=D1=8C Daniel Kr=C3=BCgler =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=
=D0=BB:
>
> 2017-03-01 11:23 GMT+01:00 Denis Kotov <redr...@gmail.com <javascript:>>:=
=20
> > Hi all,=20
> >=20
> > I have faced with the following issue:=20
> >=20
> > namespace com {=20
> >=20
> > namespace Company {=20
> >=20
> > namespace Department {=20
> >=20
> > // Some code=20
> >=20
> > } // com=20
> >=20
> > } // Company=20
> >=20
> > } // Department=20
> >=20
> > We can use somthing like this:=20
> >=20
> > namespace com { namespace Company { namespace Department {=20
> >=20
> > // Some code=20
> >=20
> > } } } // com.Company.Department=20
> >=20
> > But it is again is not a perfect solution.=20
> >=20
> > It will be better to have shortcut for such situation like:=20
> >=20
> > namespace com.Company.Department {=20
> >=20
> > // Some code=20
> >=20
> > } // com.Company.Department=20
> >=20
> > What do you think ?=20
>
> This is already supported, but the spelling is slightly different:=20
>
> namespace com::Company::Department {=20
> // Some code=20
> }=20
>
> - Daniel=20
>
--=20
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 e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/f1b77194-40e1-4d55-99fa-3a3f13c05f88%40isocpp.or=
g.
------=_Part_1606_1753678482.1488366999576
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Thanks for answer !<div><div><br>=D1=81=D1=80=D0=B5=D0=B4=
=D0=B0, 1 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2017 =D0=B3., 12:28:47 UTC+2 =D0=
=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Danie=
l Kr=C3=BCgler =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:<blockquote class=
=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #cc=
c solid;padding-left: 1ex;">2017-03-01 11:23 GMT+01:00 Denis Kotov <<a h=
ref=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"0KPz-suiCQAJ=
" rel=3D"nofollow" onmousedown=3D"this.href=3D'javascript:';return =
true;" onclick=3D"this.href=3D'javascript:';return true;">redr...@g=
mail.com</a>>:
<br>> Hi all,
<br>>
<br>> I have faced with the following issue:
<br>>
<br>> =C2=A0 =C2=A0 namespace com {
<br>>
<br>> =C2=A0 =C2=A0 namespace Company {
<br>>
<br>> =C2=A0 =C2=A0 namespace Department {
<br>>
<br>> =C2=A0 =C2=A0 // Some code
<br>>
<br>> =C2=A0 =C2=A0 } // com
<br>>
<br>> =C2=A0 =C2=A0 } // Company
<br>>
<br>> =C2=A0 =C2=A0 } // Department
<br>>
<br>> We can use somthing like this:
<br>>
<br>> =C2=A0 =C2=A0 namespace com { namespace Company { namespace Depart=
ment {
<br>>
<br>> =C2=A0 =C2=A0 // Some code
<br>>
<br>> =C2=A0 =C2=A0 } } } // com.Company.Department
<br>>
<br>> But it is again is not a perfect solution.
<br>>
<br>> It will be better to have shortcut for such situation like:
<br>>
<br>> =C2=A0 =C2=A0 namespace com.Company.Department {
<br>>
<br>> =C2=A0 =C2=A0 // Some code
<br>>
<br>> =C2=A0 =C2=A0 } // com.Company.Department
<br>>
<br>> What do you think ?
<br>
<br>This is already supported, but the spelling is slightly different:
<br>
<br>namespace com::Company::Department {
<br>=C2=A0 // Some code
<br>}
<br>
<br>- Daniel
<br></blockquote></div></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/f1b77194-40e1-4d55-99fa-3a3f13c05f88%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/f1b77194-40e1-4d55-99fa-3a3f13c05f88=
%40isocpp.org</a>.<br />
------=_Part_1606_1753678482.1488366999576--
------=_Part_1605_22185194.1488366999576--
.