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

Re: Elimination of Item|Pair and Any|Junction

Thread Previous | Thread Next
Autrijus Tang
July 27, 2005 12:55
Re: Elimination of Item|Pair and Any|Junction
Message ID:
On Wed, Jul 27, 2005 at 09:12:00AM -0700, Larry Wall wrote:
> Yes.  The only thing I don't like about it is that any() isn't an Any.


>     - Object
> 	- Mumble
> 	    - Item
> 		- ...pretty much everything
> 	    - Pair
> 	- Junction
>     - num, int, str...

Hrm.  I thought the original motivation of forcing people to write


was precisely to discourage people from accidentally write

    sub foo (Any $x)

and have $x accept a Junction.  In other words, any() should not be of
type Any.  Hence it still feels natural for me that Any occurs at the
position of Mumble.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About