Content deleted Content added
Tag: |
|||
(8 intermediate revisions by 7 users not shown) | |||
Line 1:
{{Talk header}}
{{WikiProject banner shell|class=C|
{{WikiProject Computing |importance=Low |software=y |software-importance=Low}}
}}
==Talk==
"In the PHP language, which was largely inspired by Perl" <--- uhh, what? I can't see any resemblence between PHP or Perl...
Line 20 ⟶ 26:
== Shell scripting, operator or not? ==
This page is confused as to whether shell scripting's '$' is a sigil or an operator. Historical context says "Larry Wall adopted shell scripting's use of sigils for his Perl programming language." but Similar phenomenon says "In Unix shell scripting and in utilities such as Makefiles, the "$" is a unary operator that translates the name of a variable into its contents. While this may seem similar to a sigil, it is properly a unary operator for lexical indirection, similar to the * indirection operator for pointers in C, as noticeable from the fact that the dollar sign is omitted when assigning to a variable." <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/68.227.46.192|68.227.46.192]] ([[User talk:68.227.46.192|talk]]) 03:49, 12 December 2013 (UTC)</span><!-- Template:Unsigned IP -->
: Yes, the $ operator is not a sigil. It means "what follows is special expansion syntax". Variables do not inherently have sygils. Witness:
Line 50 ⟶ 56:
[[Special:Contributions/24.85.131.247|24.85.131.247]] ([[User talk:24.85.131.247|talk]]) 05:50, 26 January 2014 (UTC)
== Origin of BASIC's $ sigil? ==
I know that Darthmouth BASIC didn't support strings at all, and Microsoft's Altair BASIC used the $. In between, I know nothing. Does anyone know if it was Microsoft that originated this feature?
[[Special:Contributions/147.0.139.66|147.0.139.66]] ([[User talk:147.0.139.66|talk]]) 15:11, 23 November 2016 (UTC)
== Hungarian notation is NOT a convention for variable-naming that specifies variable type ==
Regarding:
: ... is Hungarian notation, a convention for variable-naming that specifies variable type ...
No, that is the gross [https://www.joelonsoftware.com/2005/05/11/making-wrong-code-look-wrong/ misinterpretation by Microsoft documentation writers] (near ''"inadvertently invented what came to be known as Systems Hungarian"''), not at all what the inventor had in mind (explicitly stated several times in the original paper).
See also 04 mins 00 secs - 06 mins 35 secs in [https://twit.tv/shows/triangulation/episodes/277 Triangulation 277].
--[[User:Mortense|Mortense]] ([[User talk:Mortense|talk]]) 21:17, 7 November 2018 (UTC)
|