Simon Cozens wrote:
>
> On Thu, Sep 28, 2000 at 10:00:49AM -0400, Andy Dougherty wrote:
> > On Wed, 27 Sep 2000, Nathan Wiger wrote:
> > > Y'know, I couldn't have said this better myself. :-) I've always felt
> > > that "use English" was a waste of time and effort, a bandaid trying to
> > > act a
Andy Dougherty <[EMAIL PROTECTED]> writes:
> I find that I don't remember many of the less-frequently-used perlvars
> (where less-frequently-used depends on the types of programs I write,
> obviously). I certainly couldn't tell you off-hand the differences
> among $< $> $( and $). I'd have to l
On Thu, Sep 28, 2000 at 10:00:49AM -0400, Andy Dougherty wrote:
> On Wed, 27 Sep 2000, Nathan Wiger wrote:
> > Y'know, I couldn't have said this better myself. :-) I've always felt
> > that "use English" was a waste of time and effort, a bandaid trying to
> > act as a tourniquet.
>
> I think it's
Tom Christiansen wrote:
>
> You suggested:
>
> file($file, 'w'); # is it writeable?
>
> That's really insane. The goal was to produce code that's legible.
I'd always use -w and would never use anything else. I was just
brainstorming.
And I personally don't understand your sugge
./sun4-solaris/POSIX.pm:sub isatty {
./sun4-solaris/B/Deparse.pm:sub is_scope {
./sun4-solaris/B/Deparse.pm:sub is_state {
./sun4-solaris/B/Deparse.pm:sub is_miniwhile { # check for one-line loop
(`foo() while $y--')
./sun4-solaris/B/Deparse.pm:sub is_scalar {
./sun4-solaris/B/Deparse.pm:sub is_su
> if ( all { $_->($file) } \&writable, \&directory ) { ...
Is that the PDL C?
With the superpositional C it would be:
if ( all(\&writable, \&directory)->($file) ) { ...
:-)
Hm. Maybe C, C, etc. could return objects
that equate to a filename *only* if the original predicate is t
Nathan Wiger wrote:
> In fact, I'd much rather still a more generic function like 'want' that
> takes a list of things to check:
>
>file($file, 'd'); # is it a directory?
>file($file, 'wd'); # is it a writable directory?
if ( all { $_->($file) } \&writable, \&directory ) { ...
Ariel Scolnicov wrote:
>
> > is_readable(file) is really -r(file)
>
> Has unpleasant syntax saying "is_readable". Should be like normal
> English predicates. Get the idea you do. Is better even the Lisp -p
> convention!
>
> What's wrong with doing it like I (and maybe a few others) speak
Adam Turoff <[EMAIL PROTECTED]> writes:
> I plan to offer a more formal RFC of this idea.
>
> Z.
>
> =item perl6storm #0101
>
> Just like the "use english" pragma (the modern not-yet-written
> version of "use English" module), make something for legible
> fileops.
>
> is_readable(file) is