Re: xkcd.com/353 ( Flying with Python )

Liste des GroupesRevenir à cl python 
Sujet : Re: xkcd.com/353 ( Flying with Python )
De : mats (at) *nospam* wichmann.us (Mats Wichmann)
Groupes : comp.lang.python
Date : 31. Mar 2024, 19:27:34
Autres entêtes
Message-ID : <mailman.41.1711909694.3468.python-list@python.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 3/30/24 10:31, MRAB via Python-list wrote:
On 2024-03-30 11:25, Skip Montanaro via Python-list wrote:
>
https://xkcd.com/1306/
                           what does  SIGIL   mean?
>
I think its' a Perl term, referring to the $/@/# symbols in front of
identifiers.
>
I wouldn't consider '@' to be a sigil any more than I would a unary minus.
Nonetheless, Perl folk do use that term, specifically.
"One thing that distinguishes Perl from other languages is its use of sigils; the funny looking symbols placed in front of variable names. "
$ Scalar $foo
@ Array @foo
% Hash %foo
& Subroutine &foo
* Typeglob *foo
 >    Sigils have many benefits, not least of which is that variables can be interpolated into strings with no additional syntax. Perl scripts are also easy to read (for people who have bothered to learn Perl!) because the nouns stand out from verbs. And new verbs can be added to the language without breaking old scripts.
 >    Programming Perl, Chapter 1, 4th Edition
etc.

Date Sujet#  Auteur
30 Mar 24 * xkcd.com/353 ( Flying with Python )17HenHanna
30 Mar 24 +* Re: xkcd.com/353 ( Flying with Python )8Greg Ewing
30 Mar 24 i+- Re: xkcd.com/353 ( Flying with Python )1HenHanna
30 Mar 24 i+- Re: xkcd.com/353 ( Flying with Python )1Skip Montanaro
30 Mar 24 i+- Re: xkcd.com/353 ( Flying with Python )1MRAB
30 Mar 24 i+- Re: xkcd.com/353 ( Flying with Python )1Alan Gauld
31 Mar 24 i+- Re: xkcd.com/353 ( Flying with Python )1Mats Wichmann
31 Mar 24 i+- Re: xkcd.com/353 ( Flying with Python )1Peter J. Holzer
31 Mar 24 i`- Re: xkcd.com/353 ( Flying with Python )1Peter J. Holzer
30 Mar 24 +* Re: xkcd.com/353 ( Flying with Python )2Blue-Maned_Hawk
4 Apr 24 i`- Re: xkcd.com/353 ( Flying with Python )1HenHanna
30 Mar 24 +* Re: xkcd.com/353 ( Flying with Python )5Johanne Fairchild
30 Mar 24 i+* Re: xkcd.com/353 ( Flying with Python )2HenHanna
1 Apr 24 ii`- Re: xkcd.com/353 ( Flying with Python )1inhahe
1 Apr 24 i+- Re: xkcd.com/353 ( Flying with Python )1PA
1 Apr 24 i`- Re: xkcd.com/353 ( Flying with Python )1PA
3 Apr 24 `- Re: xkcd.com/353 ( Flying with Python )1HenHanna

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal