Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #14700

Re: #include and namespaces

From Miles Bader <miles@gnu.org>
Newsgroups comp.lang.c++
Subject Re: #include and namespaces
Date 2012-03-03 10:54 +0900
Message-ID <87wr72o3ek.fsf@catnip.gol.com> (permalink)
References (2 earlier) <jioioq$ts9$1@dont-email.me> <jiok36$77m$1@dont-email.me> <141f240c-f20f-4106-ab53-243daab76210@l7g2000vbw.googlegroups.com> <87ty27p0ib.fsf@catnip.gol.com> <0ef31cae-1246-47de-a726-ba9b00f5fa4d@s7g2000vby.googlegroups.com>

Show all headers | View raw


Daniel <danielaparker@gmail.com> writes:
> On Mar 2, 8:59 am, Miles Bader <mi...@gnu.org> wrote:
>> Daniel <danielapar...@gmail.com> writes:
>> > What would you do about something like boost::gregorian::date? I'm
>> > hesitant to have "date" inside even a custom namespace.
>>
>> Why?  Isn't the entire _point_ of namespaces to make such things
>> reasonable?
>
> What if the class was some_namespace::i?

Then ... nothing?  some_namespace::i seems fine to me (it might be
annoying for the _implementors_ of various stuff in some_namespace,
but hey, it's their choice)...

> It doesn't help that the standard library and boost both follow
> naming conventions for class names that are not common in other
> code.  Hence, perhaps, the greater number of hits accorded "typedef
> boost::gregorian::date Date" etc. versus "using
> boost::gregorian::date".

Meh; "A foolish consistency is the hobgoblin of little minds"

-miles

-- 
Zeal, n. A certain nervous disorder afflicting the young and inexperienced.

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

#include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-01 00:34 -0800
  Re: #include and namespaces Victor Bazarov <v.bazarov@comcast.invalid> - 2012-03-01 07:54 -0500
    Re: #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-01 06:38 -0800
      Re: #include and namespaces Victor Bazarov <v.bazarov@comcast.invalid> - 2012-03-01 14:26 -0500
        Re: #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 00:47 -0800
    Re: #include and namespaces yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2012-03-01 17:38 +0000
      Re: #include and namespaces Gareth Owen <gwowen@gmail.com> - 2012-03-01 18:07 +0000
        Re: #include and namespaces yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2012-03-01 18:52 +0000
          Re: #include and namespaces Paavo Helde <myfirstname@osa.pri.ee> - 2012-03-01 15:13 -0600
      Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-01 19:07 +0100
        Re: #include and namespaces yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2012-03-02 08:02 +0000
          Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-02 11:12 +0100
  Re: #include and namespaces Anand Hariharan <mailto.anand.hariharan@gmail.com> - 2012-03-01 11:20 -0800
    Re: #include and namespaces Victor Bazarov <v.bazarov@comcast.invalid> - 2012-03-01 14:30 -0500
      Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-01 20:53 +0100
        Re: #include and namespaces Miles Bader <miles@gnu.org> - 2012-03-02 09:51 +0900
        Re: #include and namespaces Daniel <danielaparker@gmail.com> - 2012-03-02 05:13 -0800
          Re: #include and namespaces Miles Bader <miles@gnu.org> - 2012-03-02 22:59 +0900
            Re: #include and namespaces Daniel <danielaparker@gmail.com> - 2012-03-02 10:31 -0800
              Re: #include and namespaces Miles Bader <miles@gnu.org> - 2012-03-03 10:54 +0900
              Re: #include and namespaces "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-03 08:53 +0100
  Re: #include and namespaces Juha Nieminen <nospam@thanks.invalid> - 2012-03-02 18:37 +0000
    Re: #include and namespaces Luca Cerone <luca.cerone@gmail.com> - 2012-03-03 04:22 -0800

csiph-web