>If the prefix-less form of filehandles was absent from Perl 6, I would be 
>far less enthusiastic about my RFC.  I agree; they're a kind of scalar.

>(Just occurred to me that one could view the % prefix of hashes as denoting 
>a key-value pair by virtue of looking like two o's separated by a 
>divider.  Never seen this interpretation before, though.)

< Camel:

    Since the keys to a hash are not automatically implied by their
    position, you must supply the key as well as the value when
    populating a hash. You can still assign a list to it like an
    ordinary array, but each I<pair> of items in the list will be
    interpreted as a key and a value.  Since we're dealing with
    pairs of items, hashes use the funny character C<%> to mark
    hash names.  (If you look carefully at the C<%> character, you
    can see the key and the value with a slash between them.  It
    may help to squint.)

--tom

Reply via email to