The poll can't have been exhaustive.

I like these magic variables that depend on currently selected
fie handles, they remind me of Pascal's C<with> construction
for entering the name space of a record structure.


Anyone for generalizing "select" to a more general "with" keyword
which would operate on a limited hash and be syntactic sugar for
replacing all appearances of unqualified variables that match
the hash's keys with references into it?


        %record = loadrecord($studentID);
        with %record {
                print <<SPAM;
        Dear $Name:
                Your tuition is now due.  Please send in a payment
        of at least $Minumum.           

        SPAM

        # anyone for having a python-like floating left edge for
        # retaining indentation of hereis strings?

        };



Nathan Wiger wrote:

> http://www.mail-archive.com/perl6-language-io@perl.org/msg00094.html
> 
> This is a succinct summary of the basic conclusions thus far:
> 
>    1. a default filehandle IS needed sometimes, but only
>       for stuff like print
> 
>    2. $|, $\, $/, etc will probably go away entirely in
>       favor of object methods such as $handle->autoflush
> 
> That's the current thinking. As always, this is subject to change.
> However, most everyone seems to agree that "having global $| vars that
> aren't really global but actually depend on what the currently selected
> filehandle is which depends on what select() was called on" is bad. So,
> setting stuff like autoflush will probably be object methods only.
> Setting stuff like the default for print will probably still be via the
> default filehandle.
> 
> -Nate

-- 
                          David Nicol 816.235.1187 [EMAIL PROTECTED]
                         Useless use of a void in constant context

Reply via email to