Jump to content

Talk:Sigil (computer programming)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Terrakotta (talk | contribs) at 10:12, 23 September 2010. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

"In the PHP language, which was largely inspired by Perl" <--- uhh, what? I can't see any resemblence between PHP or Perl...


Quote:

This is the source of the long tradition of using "i", "j", "k" etc as the loop indexes of "for loops" in many programming languages—few of which have implicit typing).

It seems like this comes from math instead. As in, x sub i and x sub j

There is one thing that I find confusing about this article. In the second paragraph it is stated that Perl's sigils were adopted from the shell sigils. On the other hand, the first paragraph of Language comparision state that the $ in shell scripting is not a sigil. Isn't that a contradiction?

BernhardSchmalhofer (talk) 19:22, 27 March 2010 (UTC)[reply]


“$” precedes any variable name: I'd say it's an operator as in shell scripts. If $a is 1234, $ref is 'a' then $$ref is 1234. Which is understandable, because in PHP simply writing 'test' (without $ or quotes) means the string 'test' (if there's no constant defined as 'a')

--Terrakotta (talk) 10:11, 23 September 2010 (UTC)[reply]