Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: [Perl6] Can i put a operator in container (Perl 6)

by 1nickt (Canon)
on Jul 10, 2017 at 18:20 UTC ( [id://1194735]=note: print w/replies, xml ) Need Help??


in reply to Re: [Perl6] Can i put a operator in container (Perl 6)
in thread [Perl6] Can i put a operator in container

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: [Perl6] Can i put a operator in container (Perl 6)
by raiph (Deacon) on Jul 11, 2017 at 04:47 UTC
    For the record this would work in P6:

    my %missing = %book.Set (-) %dict.Set;

      Yes, clearly, you can use the built-in set difference operator for that specific operation. My point was only to show an example demonstrating how to create a new operator, in this case between two hashes.
Re^3: [Perl6] Can i put a operator in container (Perl 6)
by Laurent_R (Canon) on Jul 10, 2017 at 19:10 UTC
    Your prejudice is very well-known here.

    I could argue with you, but I wasted my time too often on that.

    Not interested.

      Is he wrong?
        Is he wrong?
        Sure, he is (in my own perhaps prejudiced view, at least). The possibility to create new operators is a tremendous way to extend the language and to make it able to face the challenges of the years to come that we can't even think about today. And there are many other features to enable you to extend the language.

        Criticizing this way the details of an example presented for pedagogical purpose is just a lack of intellectual integrity. I'm not going to discuss it further.

Re^3: [Perl6] Can i put a operator in container (Perl 6)
by karlgoethebier (Abbot) on Jul 11, 2017 at 07:43 UTC

    Passionate debates are OK. But why do you hate this stuff so much? See also σωφροσύνη.

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: [Perl6] Can i put a operator in container (Perl 6)
by Anonymous Monk on Jul 10, 2017 at 18:26 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-16 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found