C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Portland meeting, Oct. 2006] Two little naming suggestions

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
Gennaro Prota
Guest





PostPosted: Wed Sep 20, 2006 6:59 pm    Post subject: [Portland meeting, Oct. 2006] Two little naming suggestions Reply with quote



Hi all,

it was suggested that I found a committee member to voice these two
issues at the next meeting, so I thought posting here was the best way
to achieve that without nagging individual members by private mail.

a) nullptr; as far as I can see in the nullptr proposal there's
no mention of either names "null_ptr" and "null_pointer".
Why?

The latter would be in line with the current naming style, which
mostly ban abbreviations, while the former would mimic auto_ptr,
shared_ptr and related. Actually, come to think of it, I suppose
*all* those facilities should have "_pointer", not "_ptr", in
their name.

Opinions? Anyone willing to carry this on?

b) static_assert: though there's a Boost-releated usage history
behind it, I find that once it is formalized as part of a
declaration the verbal form "assert" becomes unnatural (unless
one thinks of it as a function declaration, which isn't the case).
That form strongly suggests to me that I'm dealing with an
expression.

Anyone agreeing with me that it should be "static_assertion"?

--
Gennaro Prota

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to top
Guest






PostPosted: Wed Sep 27, 2006 3:33 pm    Post subject: Re: [Portland meeting, Oct. 2006] Two little naming suggesti Reply with quote



Gennaro Prota wrote:
Quote:
a) nullptr; as far as I can see in the nullptr proposal there's
no mention of either names "null_ptr" and "null_pointer".

The latter would be in line with the current naming style, which
mostly ban abbreviations, while the former would mimic auto_ptr,
shared_ptr and related. Actually, come to think of it, I suppose
*all* those facilities should have "_pointer", not "_ptr", in
their name.

null_ptr gets my vote FWIW, for consistency with the other pointers you
mentioned. I don't like abbreviations either but given that they are
already there I think consistency needs to be maintained.

$0.02.

Andrew Marlow

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.