develooper Front page | perl.perl6.language | Postings from March 2009

Dot forms of adjectives

Thread Previous | Thread Next
Richard Hainsworth
March 15, 2009 01:11
Dot forms of adjectives
Message ID:
But I recently read this on irc:

23:16    pugs_svn    r25809 | lwall++ | This decrease in consistency on 
the syntactic level is offset by an
23:16    pugs_svn    r25809 | lwall++ | increase in consistency on the 
semantic level, as suggested by rouso++.
23:16    pugs_svn    r25809 | lwall++ | (We'd already gotten rid of the 
dot forms of adverbs some time ago,
23:16    pugs_svn    r25809 | lwall++ | for similar reasons.  We just 
didn't quite carry the idea through.)

and then read this:

S03 Changes to Perl5 Operators

    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 
class decides how to dispatch methods.

Is there an inconsistency here?

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