Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: A specific term for a Perlism

by AnomalousMonk (Archbishop)
on Mar 19, 2015 at 18:02 UTC ( [id://1120627]=note: print w/replies, xml ) Need Help??


in reply to Re^4: A specific term for a Perlism
in thread A specific term for a Perlism

I'm with choroba on this. Whenever I see a phrase like "variable x is an alias of variable y", I immediately think that any operation upon x is really an operation upon y. The fanciness is implicit in the term itself, plain as it may be. See 'alias' in perlglossary.

Updates:

  1. Maybe the big, fancy word you're thinking of is 'autovivification' (see also perlglossary), but that's something else entirely.
  2. And BTW: 'aliasing' (both term and concept) is not a Perlism, i.e., something specific to Perl, it's a basic CS-ish notion.


Give a man a fish:  <%-(-(-(-<

Replies are listed 'Best First'.
Re^6: A specific term for a Perlism
by JupiterCrash (Monk) on Mar 19, 2015 at 18:26 UTC

    You know, 'autovivification' just might be the word that I was thinking of. I had to look up its meaning, and reading it now, I do see that it is an entirely different thing than what I described. I probably once misunderstood what autovivification was and committed my own definition to memory, but I think that is the word I was looking for.

    THANKS!

    I know that aliasing is not unique to Perl. :) But, I think that the full behavior shown in my example and described in my quoted sentence from Modern Perl is probably unanticipated for most people who are accustomed to other languages.

      autovivification is completely unrelated to the aliasing process you asked about. Aliasing is the correct and magical term for what happens to Perl loop variables (but not their C equivalents) and to what happens with @_ elements which are aliases of the parameters passed into a sub.

      This is very important and subtle magic and the word "alias" captures exactly what is going on. A large part of the magic is that most of the time you don't need to be aware of it.

      Perl is the programming world's equivalent of English
Re^6: A specific term for a Perlism
by Discipulus (Canon) on Mar 20, 2015 at 09:57 UTC
    thanks and ++ for the perlglossary hint, never eard about it.

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1120627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-19 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found