Related articles |
---|
magic/absurd bash interpreter/compiler ? Avoid9Pdf@gmail.com (2012-12-23) |
Re: magic/absurd bash interpreter/compiler ? miller@yoyo.ORG (J G Miller) (2012-12-24) |
Re: magic/absurd bash interpreter/compiler ? jthorn@astro.indiana.edu (Jonathan Thornburg) (2012-12-24) |
Re: magic/absurd bash interpreter/compiler ? eric@deptj.eu (Eric) (2012-12-24) |
Re: magic/absurd bash interpreter/compiler ? barmar@alum.mit.edu (Barry Margolin) (2012-12-24) |
Re: magic/absurd bash interpreter/compiler ? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2012-12-25) |
Re: magic/absurd bash interpreter/compiler ? eric@deptj.eu (Eric) (2012-12-26) |
Re: magic/absurd bash interpreter/compiler ? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2012-12-28) |
Re: magic/absurd bash interpreter/compiler ? barmar@alum.mit.edu (Barry Margolin) (2012-12-28) |
From: | Barry Margolin <barmar@alum.mit.edu> |
Newsgroups: | comp.compilers,comp.unix.shell,comp.os.linux.misc |
Date: | Mon, 24 Dec 2012 20:48:25 -0500 |
Organization: | A noiseless patient Spider |
References: | 12-12-014 12-12-018 |
Keywords: | design, syntax |
Posted-Date: | 25 Dec 2012 18:16:20 EST |
In article 12-12-018, Eric <eric@deptj.eu> wrote:
> So many questions, on so many forums, are from people who expect the
> language they are learning to be just like one they have already learnt.
> The main thing that these people need to learn is to _not_ do that. You
> can probably achieve the same results with the new language, but probably
> not in an exactly analogous way.
Good point. I answered a question on Stack Overflow about PHP's $_POST
variable; variables like this are called superglobals in the PHP
documentation. The poster said that "superglobal" should mean that the
value is shared by all scripts, because his intuitive interpretation of
the term means that its scope should be wider than an ordinary global
variable. Never mind that this is not actually a common computer term,
the PHP designers coined it themselves to refer to their particular use
(these variables are "super" because they're automatically visible in
functions and methods, you don't have to use the "global" declaration).
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
Return to the
comp.compilers page.
Search the
comp.compilers archives again.