TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Re: Nit pick -- where to stick the * in a C/C++ definition
Subject:Re: Nit pick -- where to stick the * in a C/C++ definition From:Ben Kovitz <ben-kovitz -at- vertel -dot- com> To:"TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com> Date:Sun, 04 Mar 2001 19:57:53 -0800
Guy Haas wrote:
>I am documenting an API in C++. I need to decide on a
>standard representation for pointer definitions.
>C and C++ themselves don't care whether I say:
>
> int * foo //centered
> int* foo //closed left
>or int *foo //closed right
Bjarne Stroustrup, inventor of C++, says that the closed left format is
truest to the spirit of C++. See:
He observes that C programmers tend to prefer the closed right format, but
the closed left format gives the proper emphasis to someone who is thinking
the way you're supposed to think as a C++ programmer. This is not easy to
explain; it's one of those things that you can only grok through a lot of
experience with the language, but then it's unmistakable.
IPCC 01, the IEEE International Professional Communication Conference,
October 24-27, 2001 at historic La Fonda in Santa Fe, New Mexico, USA.
CALL FOR PAPERS OPEN UNTIL MARCH 15. http://ieeepcs.org/2001/
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.