Python is just as good as C++ for real apps

David Bolen db3l at fitlinxx.com
Fri Jan 25 19:47:35 EST 2002


grante at visi.com (Grant Edwards) writes:

> In article <uelkeqhc6.fsf at ctwd0143.fitlinxx.com>, David Bolen wrote:
(...)
> > The fact that it works like the first case always made me feel
> > uncomfortable with the "int* p1" notation rather than "int *p1", since
> > at least visually the former (to me) appears to apply to anything in
> > its list of variables being defined.
> 
> int *p;
> 
> Think of it as meaning that *p is of type int rathing than p is
> of type int*, and then it makes a bit more sense.

Um, right, the "int *p" form is the one I like.

But C++ style seems to push the "int* p" (or "int& p") forms as preferable.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list