From: anon@att.net
Subject: Re: [OT] interesting reason why a language is considered good
Date: Tue, 17 Apr 2012 21:59:08 +0000 (UTC)
Date: 2012-04-17T21:59:08+00:00 [thread overview]
Message-ID: <jmkp3b$bol$1@speranza.aioe.org> (raw)
In-Reply-To: jme7r1$eo7$1@speranza.aioe.org
Most languages uses, a limited set of words. One reason is that it is
easier to implement. An example is where a routine does not return a
value aka a procedure is defined in some languages like Ada with the
usage of the word "procedure" but in other languages like C the same
routines is defined as a function with a "void" return value. The
problem in C is that a "return <value>" statement can still be used
with a C's procedure, unlike Ada.
An exception is PL/I.
Due to it origins PL/I is the one of a very few language that more
language words. And in PL/I there is no "Reserved words." All words
can be use for any purpose, an and example of a legal statement is,
if if = true then
else = 0 ;
else
call then ;
end ;
In this case, "if" and "then" and "else" are both variables, routine
and language words. And even though these type of statement are legal
most PL/I programmers only see these type of statements on test or a
text book.
In <jme7r1$eo7$1@speranza.aioe.org>, "Nasser M. Abbasi" <nma@12000.org> writes:
>
>I thought some here might enjoy this, since I know Ada
>folks are more "software engineering" aware than the
>average on the net ;)
>
>Here is what I read:
>
>"The lack of reserved words in the language gives the
>programmer complete freedom to choose identifiers."
>
>The above was listed under the header of what makes this
>language easy, robust and well defined! (I am not
>going to name the language).
>
>Now, I found this to be so strange and really bizarre, as
>I would have thought it should be the other way round.
>
>Reserved words are a good thing. Having an
>identifier be called 'if' or 'then' or 'which' is
>supposed to be good as it gives the programmer the freedom
>to choose the name of the variables?
>
>I am sometimes just amazed at what I read on the net
>about what makes a language good. But this one tops
>the list.
>
>--Nasser
next prev parent reply other threads:[~2012-04-17 21:59 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-15 10:27 [OT] interesting reason why a language is considered good Nasser M. Abbasi
2012-04-15 11:57 ` J-P. Rosen
2012-04-16 10:37 ` Peter C. Chapin
2012-04-15 12:27 ` Dmitry A. Kazakov
2012-04-17 6:59 ` tonyg
2012-04-17 7:43 ` Dmitry A. Kazakov
2012-04-15 14:05 ` Bill Findlay
2012-04-15 14:21 ` Pascal Obry
2012-04-15 14:54 ` Simon Wright
2012-04-15 15:34 ` Pascal Obry
2012-04-17 5:42 ` Brad Moore
2012-04-17 16:11 ` Simon Wright
2012-04-17 16:33 ` Robert A Duff
2012-04-17 19:34 ` Simon Wright
2012-04-17 21:42 ` Robert A Duff
2012-04-17 22:24 ` Randy Brukardt
2012-04-18 7:00 ` stefan-lucks
2012-04-17 21:17 ` Jeffrey Carter
2012-04-15 23:53 ` Brian Drummond
2012-04-16 10:43 ` Marius Amado-Alves
2012-04-16 11:48 ` Georg Bauhaus
2012-04-16 13:06 ` Dmitry A. Kazakov
2012-04-16 15:01 ` Georg Bauhaus
2012-04-16 15:31 ` Dmitry A. Kazakov
2012-04-16 17:11 ` Georg Bauhaus
2012-04-16 17:19 ` Georg Bauhaus
2012-04-16 18:00 ` Dmitry A. Kazakov
2012-04-16 21:48 ` Georg Bauhaus
2012-04-17 3:43 ` Randy Brukardt
2012-04-17 4:43 ` Bill Findlay
2012-04-17 7:46 ` Georg Bauhaus
2012-04-17 22:32 ` Randy Brukardt
2012-04-18 7:10 ` stefan-lucks
2012-04-18 23:48 ` Randy Brukardt
2012-04-19 14:22 ` Shark8
2012-04-17 15:48 ` Simon Wright
2012-04-17 16:15 ` Dmitry A. Kazakov
2012-04-17 19:33 ` Simon Wright
2012-04-17 7:34 ` Dmitry A. Kazakov
2012-04-17 16:01 ` Simon Wright
2012-04-17 17:42 ` Georg Bauhaus
2012-04-17 19:17 ` Dmitry A. Kazakov
2012-04-17 3:24 ` Randy Brukardt
2012-04-17 3:33 ` Randy Brukardt
2012-04-16 19:55 ` sbelmont700
2012-04-17 0:48 ` Peter C. Chapin
2012-04-17 21:59 ` anon [this message]
2012-05-13 4:14 ` David Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox