develooper Front page | perl.perl6.language | Postings from August 2000

Re: RFC 15 (v1) Stronger typing through tie.

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
August 5, 2000 15:07
Subject:
Re: RFC 15 (v1) Stronger typing through tie.
Message ID:
E13LBwH-0001en-00@roam1
John Porter <jdporter@min.net> writes:
>Michael Fowler <michael@shoebox.net>:
>> 
>>     use typing;  # place your fingers on the home row..
>> 
>>     my integer $quux = 4;
>
>I believe that would have to be 
>
>	integer my $quux = 4;
>
>at least in perl5...

Well Larry has been using 

my Dog $spot;

for a while.

But I just realized if $ is one of something, @ sereral etc.
then do we need a magic char to designate 'type' (class or whatever).

I suppose:

my ¢Dog $spot;  # That is "cent" i.e. c with line.

might do ;-)

-- 
Nick Ing-Simmons


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