develooper Front page | perl.perl6.language | Postings from July 2005 interface

Thread Next
July 7, 2005 10:18
Subject: interface
Message ID:

gaal is porting the Perl 5 filehandle functions to a Perl 6 OO
interface. The Perl 5 interface with global constants from Fcntl strikes
me as severely lacking in elegance and OO.

    $, SEEK_END);

Instead of globals, how about a :from adverb?

    $, :from<end>);

Or maybe we don't need such an adverb at all, and instead use

    $$fh.end - 10);

I'm a pretty high level guy, so I don't know about the performance
implications of that. Maybe we want to keep seek() low level, anyway.

Subject to change when it comes to the Perl 6 Unicode semantics, of
course. :)

Any thoughts/decisions?


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