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

Re: When can I take given as read?

Thread Previous | Thread Next
From:
Piers Cawley
Date:
June 21, 2005 01:24
Subject:
Re: When can I take given as read?
Message ID:
m28y14glsz.fsf@obelisk.bofh.org.uk
Carl Franks <fireartist@gmail.com> writes:

>>      sub factorial (Int $n is topic) {
>>          return 1 when 0;
>>          return $n * factorial $n;
>>      }
>
> hmm, could we write...
>
> sub foo (Class $self is topic: +$foo, +$bar) {
>   .method;
> }
>
> to avoid having to use ./
> ?

Yay!

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