From: billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu (William Thomas Wolfe,2847,)
Subject: Re: What is the origin of `pragma'
Date: 8 Jul 89 22:55:45 GMT [thread overview]
Message-ID: <5955@hubcap.clemson.edu> (raw)
In-Reply-To: 15907@vail.ICO.ISC.COM
From article <15907@vail.ICO.ISC.COM>, by rcd@ico.ISC.COM (Dick Dunn):
>> >> Why was the word `pragma' selected?
>> > ALGOL 68 has a construct called a "pragmat" with very similar usage.
>> Nevertheless, it's not a very intuitively appealing keyword;
>> most people learning Ada don't say "Ah, yes, from the Latin..."
>> (or whatever)... rather, it's a counter-intuitive thing to be
>> memorized.
>
> What is counter-intuitive? At most it's non-intuitive to someone who
> doesn't know the word, but certainly a remark directed to the compiler,
> concerning not some abstract matter, but a concrete, practical point,
> is a "pragmatic remark." Seems intuitive to me.
But not to people first learning the language!!
You can verify this by giving this test to non-Ada programmers:
----------------------------------------------------------
The following is a list of keywords in one or more unknown
programming languages. Please write down your best guess
as to the purpose of each keyword listed.
1) pragma
2) Compiler:
----------------------------------------------------------
The responses will be, respectively,
1) Don't know.
2) This looks like a compiler directive.
----------------------------------------------------------
Programming languages would come much more naturally if this
sort of testing for user-friendliness were performed more often.
Overall, Ada did a fine job of selecting user-friendly keywords,
but pragma is a case in which it just didn't happen. Closer
attention to this factor would reduce psychological barriers to
learning Ada, thus promoting its widespread use and acceptance.
Bill Wolfe, wtwolfe@hubcap.clemson.edu
next prev parent reply other threads:[~1989-07-08 22:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1989-06-29 12:38 What is the origin of `pragma' Freeman Moore [214]995-1901
1989-07-03 17:41 ` Scott Simpson
1989-07-06 4:17 ` Dick Dunn
1989-07-06 16:55 ` William Thomas Wolfe,2847,
1989-07-07 15:52 ` Dick Dunn
1989-07-08 22:55 ` William Thomas Wolfe,2847, [this message]
1989-07-06 20:29 ` Uri Blumenthal
1989-07-07 10:42 ` Dik T. Winter
1989-07-08 21:51 ` Piercarlo Grandi
1989-07-14 14:06 ` Edward Falis
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox