• xkcd.com/353 ( Flying with Python )

    From HenHanna@21:1/5 to All on Fri Mar 29 23:21:15 2024
    XPost: sci.lang, comp.lang.lisp

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




    https://xkcd.com/1306/
    what does SIGIL mean?



    Other xkcd that you like?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Ewing@21:1/5 to HenHanna on Sat Mar 30 20:04:00 2024
    XPost: sci.lang, comp.lang.lisp

    On 30/03/24 7:21 pm, HenHanna wrote:
    https://xkcd.com/1306/
                             what does  SIGIL   mean?

    I think its' a Perl term, referring to the $/@/# symbols in front of identifiers.

    --
    Greg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From MRAB@21:1/5 to Skip Montanaro via Python-list on Sat Mar 30 16:31:59 2024
    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 had a vague recollection of hearing it elsewhere (*Game of Thrones,* on
    the armies' battle flags?), but didn't know what it meant. Google tells me:

    *an inscribed or painted symbol considered to have magical power.*

    So, they're more than just line noise. They confer power on their users...

    Perhaps '@' in the context of decorators is the most prominent example in Python, since decorators technically don't allow the programmer to do something they couldn't before, but are now are used everywhere, a key feature of many applications and modules.

    Magical-ly, y'rs,

    I wouldn't consider '@' to be a sigil any more than I would a unary minus.
    In Perl there's the prefixes $ (scalar), @ (array) and %
    (hash/dictionary), but also & (function), although it's rare because
    there's also the () afterwards.

    Variables in PHP have the prefix $ and only $.

    In old versions of BASIC, string variables had the suffix $, and integer variables the suffix %. Some versions also had the suffix # (for double precision, I think).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mats Wichmann@21:1/5 to MRAB via Python-list on Sun Mar 31 12:27:34 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter J. Holzer@21:1/5 to Alan Gauld via Python-list on Sun Mar 31 20:27:07 2024
    On 2024-03-30 17:58:08 +0000, Alan Gauld via Python-list wrote:
    On 30/03/2024 07:04, Greg Ewing via Python-list wrote:
    On 30/03/24 7:21 pm, HenHanna wrote:
    https://xkcd.com/1306/
                             what does  SIGIL   mean?

    I think its' a Perl term, referring to the $/@/# symbols in front of identifiers.

    Correct (although strictly speaking they are in front of an expression,
    not an identifier).

    There seem to be several derivation sources including a fantasy world
    city suspended above a very thin, tall steeple....

    Personally, I know SIGIL as an opensource EPUB editor!

    Well, it's an ordinary English word of Latin origin (sigillum means
    literally "small sign") in use since the 15th century. No need to go
    hunting for proper names.

    None of them seem to have any direct connection to the xkcd cartoon.

    In my opinion the connection to Perl sigils is very direct.

    hp


    --
    _ | Peter J. Holzer | Story must make more sense than reality.
    |_|_) | |
    | | | hjp@hjp.at | -- Charles Stross, "Creative writing
    __/ | http://www.hjp.at/ | challenge!"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmYJqvYACgkQ8g5IURL+ KF1oHQ/7B9arQ7g9R7XsNwaE34vA4ROnRgdL08+IjIauUmFCd+WBtgtk7vGdvNcb WBp1KTqQT9T285Mh44CDZ0YXzu/PcQj9yM4qfj2+pDPHawho3+nwfWuPzQt+Tg7y qGMW090aEGrh0Q/1i/P3dKO/6SsOjoETqYUhWRiNXp6K6VQx6kTNVwpl76TU43Ku xzu9k5Aqa1NXgCslzNcuOchnJROiMiurs1ZJuVTSVH+KOWzHex8ZR3L0hHBI8Cv+ qKHyD9LcIP8lcYMNC+svHMC03aP21jD6adE1OlgtmQE4tcGRREPn40KXJeWA6w0I Wo+3qYBpEbqFufrBBJ9Cwc67GvRa5T+5xBIFX3K7llaGn/glMI0y88KOI+FJegEo JT9tIMPWv/7FEPg7wvHJef98Kt3HKYCIXwLHrwgISEAOE0bWHx5lH3TxFa9svJ7/ wok9+oGc+FskoUw4B0hQTQ5Atp1iUl/Ra2qne9VGB3a6EUYJT6HediQvshIklgXc gIEKwAs2xV+daAV02Nroxeaiup9QQ65VUQ5OWTkuDnhqC40A0KWhSfwwxiUhRkdh pY4YMIwXcncAiB0QRNEop05C6UjLq7hNnA0sTOjPjhIo0+TpYjKVnou71TzehqJz jlLGCkvCgV9dN2pv7Ac8XkiYfV4EPcU82l5e6u2
  • From Peter J. Holzer@21:1/5 to Mats Wichmann via Python-list on Sun Mar 31 20:53:41 2024
    On 2024-03-31 12:27:34 -0600, Mats Wichmann via Python-list wrote:
    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.

    [You cut out a lot of context here]

    I wouldn't consider '@' to be a sigil any more than I would a unary minus.

    Nonetheless, Perl folk do use that term, specifically.

    I'm pretty sure he's referring to the use of @ in python to denote a
    decorator here. Which is a totally different thing than a Perl sigil.

    hp

    --
    _ | Peter J. Holzer | Story must make more sense than reality.
    |_|_) | |
    | | | hjp@hjp.at | -- Charles Stross, "Creative writing
    __/ | http://www.hjp.at/ | challenge!"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmYJsTAACgkQ8g5IURL+ KF1wIxAAnKmlfiKjOV14srgvLSlOx4gf87rTEzLVzgsWNr8lJr4p1WWqdFuRfo0L YJF3BMKDJMO3wEMK4ZeeWXpb3R1+uFa9uknc1qTdLVvHoj6gFB8l6Ll1hrHAyg8+ tnBXp0Z7ENCbOFbQeRMq8WyjfgLgRZDabnjvld+5higfmTdAEJnt245FTjMXRwOa VHmc4OooJ0RTCSxOt+/IjJ4UvXvLj3NZMAlRgNbHTgpr/NOXC4Ga3yBNL7CS71Sw QCOet8oUQfHnk2UUKb0+NwxQ28COFtNvOKQUraLL1g7Y1iqE3Vmv7XQWd1uPIZM+ QSRjkFCfTQr/7+MbOZt/gN9VfKOsnpmQU2wZjcm8Nbj+VMQJLx2Nf7YAZQ0YdRmR HGFjkz+8J2D7SSJv3NcHTC7cXlCSNXJr6G6AvhZxRoGinckBgBwuS/hvNW/mdGxo iU+lR3EbgE2nzucYHJtOHL/j+h3v1w5no0EjxyK7HYqfznFNv9BQqYE3qNaNXpz0 8u+K1pW6j0wAFz9ZVI1X6xjQBZcDBreS6numxzEJF9D6Eo0QHtzDnOvtAo/Y0qia m2rXOCkSoDSZMipqHBhVHJqpZjCR4a7lqrr6vOSIv1dqmCLpvkPwP+Sn3T3FofY3 HYHYA2lJrKCuxMNyFy7deMJd2MxgC3g3cU38f/H
  • From HenHanna@21:1/5 to HenHanna on Wed Apr 3 14:50:26 2024
    XPost: sci.lang, comp.lang.lisp

    On 3/29/2024 11:21 PM, HenHanna wrote:

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




    https://xkcd.com/1306/
                          what does  SIGIL   mean? -- (i got it...Thanks!)



    Other  xkcd   that you like?

    my fav. one may be the one about [Bad-ass Hacker] [Nice-ass car].


    Does he use Python? i wonder.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)