develooper Front page | perl.perl6.language | Postings from July 2006

Re: [svn:perl6-synopsis] r9725 - doc/trunk/design/syn

Thread Previous | Thread Next
Aaron Crane
July 28, 2006 07:54
Re: [svn:perl6-synopsis] r9725 - doc/trunk/design/syn
Message ID: writes:
> Log:
> Change "env" variables to "context" variables.

> -    $+foo       environmental variable
> +    $+foo       contextual variable

> -    ENV
> +    CONTEXT
>      SUPER

> -lexical variable must be declared using "C<env>" rather than C<my> to be
> +lexical variable must have the trait "C<is context>" to be

I realise this comment is a little late, but it occurred to me on seeing
Audrey's recent blog entry mentioning this change.

The motivation for s/environmental/contextual/ is clear: avoiding a term
that's already used for something else.  But, on the same grounds, I'm not
sure that "contextual" is the right term, and especially not C<is context>
-- Perl already has contexts, and this isn't one.

How about "ambient variables" instead?  I believe that captures the same
sense as "environmental".  It's also an adjective, which I think reads more
naturally, especially in declarations:

    my $foo is context;
    say CONTEXT::<$foo>;


    my $foo is ambient;
    say AMBIENT::<$foo>;

Aaron Crane

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About