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

Re: Properties and stricture

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
June 5, 2001 11:34
Subject:
Re: Properties and stricture
Message ID:
20010605193420.Q727@blackrider.blackstar.co.uk
On Tue, Jun 05, 2001 at 12:46:52PM -0400, John Porter wrote:
> Michael G Schwern wrote:
> > Prototypes don't work on methods.  And I wouldn't hold them up as
> > being anything but a mediocre hack.  Its not really type checking.
> 
> It's not just prototypes.
> 
> % perl -e '$r=\%h; print @$r'
> Not an ARRAY reference at -e line 1.

This isn't type-checking (semantical arguments > /dev/null), its more
like basic syntax.

You don't want to try holding up prototypes and dereference checks to
Java's typing system and try to claim its in the same league, or even
the same sport.


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
It sure is fun masturbating.
	http://www.unamerican.com/

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