develooper Front page | perl.perl6.language | Postings from June 2005

Re: When can I take given as read?

Thread Previous | Thread Next
From:
Juerd
Date:
June 21, 2005 01:47
Subject:
Re: When can I take given as read?
Message ID:
20050621084724.GF7412@c4.convolution.nl
Carl Franks skribis 2005-06-21  8:54 (+0100):
> hmm, could we write...
> sub foo (Class $self is topic: +$foo, +$bar) {
>   .method;
> }

For such a short method, perhaps just using $_ directly makes more
sense:

    sub foo (Class $_: +$foo, +$bar) {
        .method;
    }

> to avoid having to use ./

There are many ways to "avoid" it.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About