New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File test operations should work as $str.IO ~~ :e #1199
Comments
From @moritzThe spec for file test operations changed; basically it's now $str.IO ~~ Below you can find the relevant commit mail. -------- Original Message -------- Author: lwall Modified: Modified: docs/Perl6/Spec/S03-operators.pod--- docs/Perl6/Spec/S03-operators.pod 2009-07-10 19:36:51 UTC (rev 27502) Created: 8 Mar 2004 - Last Modified: 10 Jun 2009 =head1 Overview @@ -2215,15 +2215,15 @@ - if $filename ~~ :e { say "exists" } is the same as - if $filename.e { say "exists" } The 1st form actually translates to the latter form, so the object's @@ -2245,19 +2245,31 @@ -The advantage of the method form is that it can be used in places that - sort { +However, these still work: - sort { .M }, @files But that demonstrates the other advantage of the method form, which is -Unlike in earlier versions of Perl 6, these filetests do not return In general, the user need not worry about caching the stat buffer -Note that C<:s> still returns the filesize, but C<:!s> is true Hash Pair test hash mapping $_{X.key} ~~ X.value Set Set identical sets $_ === X -=head2 Reversed comparison operators Any infix operator may be called with its two arguments reversed |
From @kylehaOn Mon Aug 03 12:25:41 2009, moritz wrote:
What should the old form do now? Is ( "filename" ~~ :e ) an error? |
The RT System itself - Status changed from 'new' to 'open' |
From @tadzikIt works as specced in Rakudo, closing. |
@masak - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#68160 (status was 'resolved')
Searchable as RT68160$
The text was updated successfully, but these errors were encountered: