Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Exegesis 6 - Named binding

by dragonchild (Archbishop)
on Jul 31, 2003 at 16:01 UTC ( [id://279636]=note: print w/replies, xml ) Need Help??


in reply to Re: Exegesis 6 - Named binding
in thread Exegesis 6 - Named binding

This actually brings up another question - Will there be an equality operator that distinguishes between value equality and binding equality? For example, I want to know if $who is bound to $because vs. $who being == or eq to $because ...

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Re: Exegesis 6 - Named binding
by Elian (Parson) on Jul 31, 2003 at 17:00 UTC
    Last I knew the decision was that testing for identity wasn't going to be common enough to warrant an operator. I think instead there'll be some UNIVERSAL method that returns a unique widget that you can use to test--.is or .ref, or something along those lines.
      Of course, given that we'll have macros, we should be able to code up an operator that will test for this, right?

      ------
      We are the carpenters and bricklayers of the Information Age.

      The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

      Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

        If you wanted to, sure.
      Last I heard, that function was going to be called .id, but that may have changed a billion times ;)

      T I M T O W T D I
Re^3: Exegesis 6 - Named binding (isAlias?)
by tye (Sage) on Jul 31, 2003 at 17:34 UTC

    In Perl 5 you can already use \$x == \$y to test whether $x and $y are aliases of each other. I would think such would also work in Perl 6 but I don't follow Perl 6 deeply so I could certainly be wrong.

                    - tye

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-03-28 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found