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

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

Thread Previous
From:
Audrey Tang
Date:
July 28, 2006 09:41
Subject:
Re: [svn:perl6-synopsis] r9725 - doc/trunk/design/syn
Message ID:
4ECC356B-E096-46BB-9E61-63AEC3E3452E@audreyt.org

在 2006/7/28 上午 7:54 時,Aaron Crane 寫到:

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

The idea is that context is something you pass along in each of your  
calls.  If your function body is a simple call, then it does not  
affect the context; the callee gets the same context as you are getting.

So one can say that "want" is really one of the contextual variables  
that gets reassigned every time a function is called when a  
particular type is expected.

Thanks,
Audrey


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About