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

Re: properties, revisited

Thread Previous | Thread Next
From:
Damian Conway
Date:
August 8, 2001 10:38
Subject:
Re: properties, revisited
Message ID:
200108081738.DAA00371@indy05.csse.monash.edu.au

   > My personal preference would be for all such properties (traits?) to be
   > reserved across all types - eg using 'prompt' on a hash gives a
   > compile/run time error. This allows the compiler to catch certain types
   > of typo and thinko, and also allows us to expand in future - eg when
   > some P6Per comes up with a bright idea on how prompts can be made
   > applicable to hashes, we dont have the familar argument "but we can't
   > do that, it may break code that defines a user property called
   > 'prompt'".

I could imagine the same types of warnings on all-lowercase traits/properties
as on lowercase barewords. That is: let them be, by convention, reserved for
(future) built-ins.


   > PS - I *really* like the traits proposal.

Me too :-)

Damian

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