>> In other words, I think we should change the Perl 6 spec to define .f as >> "exists and is a file". >> >> -- >> Mark Montague
Mark and I appear to be having a vigorous agreement about the principle of Least Surprise. If -f X is defined as meaning "X exists and is a file", then obviously if it doesn't exist the first part of the "and" fails so there's no reason to check the second. Conformity to the general behaviour is the most desirable. Anything else would merely annoy people whose expectations had been violated and generate unwanted FAQs all over the Web.