Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: It Hurts Wh...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 50 Topic 8152 of 8656
Post > Topic >>

Re: It Hurts When I Do This

by GaryScott <garylscott@[EMAIL PROTECTED] > Apr 18, 2008 at 10:53 AM

On Apr 18, 11:27=A0am, nos...@[EMAIL PROTECTED]
 (Richard Maine) wrote:
> GaryScott <garylsc...@[EMAIL PROTECTED]
> wrote:
>
>http://softwareblogs.intel.com/2008/03/31/doctor-it-hurts-when-i-do-t...
>
> I don't think I've seen that article before, but I think it is well done
> (as I'd expect from Steve). I also quite agree with its points.
>
> > But we NEED a syntax that means "the entire array". =A0Code should be
> > self do***enting.
>
> We do have a syntax that means the entire array - the array name. True,
> the syntax doesn't directly tell you that it is an array, but it does
> tell you that it is the entire of whatever the thing so named is
> declared to be.
>
> While I'm a big fan of writing clear and largely self-do***enting code,
> I disagree that it helps to use a special notation to indicate that
> something is an array. Why pick on arrayness in particular? Down that
> path lies special notations for all attributes. Might as well go back to
> implicit typing, and disallow overriding the implicit type; then you can
> look at the variable name and know the type.
>
> Let's throw in conventions for all the other attributes as well. We need
> a syntax that tells you that something is the whole of a derived type.
> So as not to pick only on the "newfangled" f90 features, don't we need a
> syntax to tell you that something is all of a complex variable? Etc.
> Heck, let's throw out all declarations and encode everything in the
> syntax of referencing a variable. Seems to me like it is the same
> principle.
>
> I think it a mistake to throw all this kind of thing in the language.
> They aren't adding extra functionality - just notational convention. I
> don't see the point in picking on arrays in partucular.
>
> To the extent that one is just looking for a notational convention, we
> already have something suitable in the language. You've noted it; the
> variable name. Yes, it is up to the programmer has to select appropriate
> names. But then it would also be up to the programmer to use any such
> new language syntax... unless you incompatibly made it mandatory,
> invalidating all existing code that uses whole arrays.

It doesn't logically follow that to ask for a syntax for arrayness
requires a syntax for any other attributes.  The article makes it
quite clear that it is a common thought process among programmers and
a common pitfall.  It definitely should have been done right the first
time, but no, I wouldn't make it mandatory at this point.

>
> --
> Richard Maine =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Good judgement
come=
s from experience;
> email: last name at domain . net | experience comes from bad judgement.
> domain: summertriangle =A0 =A0 =A0 =A0 =A0 | =A0-- Mark Twain
 




 50 Posts in Topic:
It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 09:03:06 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 09:27:27 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 10:53:28 
Re: It Hurts When I Do This off topic
Dick Hendrickson <dick  2008-04-18 20:58:21 
Re: It Hurts When I Do This off topic
Steve Lionel <steve.li  2008-04-19 00:14:48 
Re: It Hurts When I Do This off topic
glen herrmannsfeldt <g  2008-04-18 16:39:41 
Re: It Hurts When I Do This off topic
Dick Hendrickson <dick  2008-04-19 02:03:35 
Re: It Hurts When I Do This off topic
Steve Lionel <steve.li  2008-04-19 12:21:24 
Re: It Hurts When I Do This off topic
"James Van Buskirk&q  2008-04-18 18:34:10 
Re: It Hurts When I Do This off topic
Dick Hendrickson <dick  2008-04-19 02:21:26 
Re: It Hurts When I Do This
none <none@[EMAIL PROT  2008-04-18 19:25:29 
Re: It Hurts When I Do This
Clive Page <junk@[EMAI  2008-04-18 19:32:15 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 13:03:45 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 13:14:28 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 13:54:56 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 13:12:10 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 14:43:23 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 14:24:32 
Re: It Hurts When I Do This
Dick Hendrickson <dick  2008-04-18 21:09:45 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 12:43:04 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 15:41:56 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 15:43:51 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 15:55:51 
Re: It Hurts When I Do This
fj <francois.jacq@[EMA  2008-04-19 03:47:57 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-19 08:28:07 
Re: It Hurts When I Do This
Ron Shepard <ron-shepa  2008-04-19 10:52:58 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-19 08:59:50 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 11:06:09 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-21 12:13:11 
Re: It Hurts When I Do This
Dick Hendrickson <dick  2008-04-21 19:29:02 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-21 11:52:12 
Re: It Hurts When I Do This
Dan Nagle <dannagle@[E  2008-04-21 20:25:04 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-21 15:25:50 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 11:10:27 
Re: It Hurts When I Do This
Arjen Markus <arjen.ma  2008-04-21 12:45:28 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 12:53:06 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 13:05:55 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-21 15:25:50 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-21 14:58:15 
Re: It Hurts When I Do This
Steve Lionel <steve.li  2008-04-22 01:12:20 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-21 19:36:49 
Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 09:37:11 
Re: It Hurts When I Do This -- diversion...
Steve Lionel <Steve.Li  2008-04-22 11:44:31 
Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 11:28:33 
Re: It Hurts When I Do This -- diversion...
Steve Lionel <Steve.Li  2008-04-22 16:13:37 
CVF help -- was: Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 15:27:08 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
Steve Lionel <Steve.Li  2008-04-22 16:43:38 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 18:51:06 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
"Jugoslav Dujic"  2008-04-23 09:35:40 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-23 08:58:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 8:18:10 CDT 2008.