Damian Conway <[EMAIL PROTECTED]> wrote:
>    > There are a number of properties "built into" Perl 6. Nearly all of these
>    > properties don't make sense across the board - eg, a scalar won't have a
>    > dimension, a hash won't prompt, etc.
>    >
>    > So given the two different sets that you must consider (variable versus
>    > value, and hash versus array versus scalar versus filehandle), are
>    > properties that are meaningless for some section usable by the user?
> 
> I would expect so, but Larry's MMV.

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'".

PS - I *really* like the traits proposal.

Reply via email to